Can some TCL god help me?
Code: Select all
06:29:19 「PePiNo」 !chanset +BlackNews
06:29:20 「@google」 activado set +BlackNews
06:30:33 「PePiNo」 !bnews pepino
06:30:53 「PePiNo」 !bnews help
06:31:20 「PePiNo」 !bnews country usa
06:31:40 「PePiNo」 !bnews lang en
06:31:49 「PePiNo」 !bnews version
Code: Select all
#############################################################################
## BlackNews.tcl 1.1 (04/08/2019) ##
## ##
## Copyright 2008 - 2019 @ WwW.TCLScripts.NET ##
## _ _ _ _ _ _ _ _ _ _ _ _ _ _ ##
## / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ ##
## ( T | C | L | S | C | R | I | P | T | S | . | N | E | T ) ##
## \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ##
## ##
## ® BLaCkShaDoW Production ® ##
## ##
## PRESENTS ##
## ® ##
############################ BLACK NEWS TCL #############################
## ##
## DESCRIPTION: ##
## Uses google news to print, on channels in real-time, the worldwide news##
## published by the most important websites from all over the web. ##
## You can see different kinds of news covered by the same keywords, from ##
## different sources or writted in different languages. ##
## ##
## Tested on Eggdrop v1.8.3 (Debian Linux) Tcl version: 8.6.6 ##
## ##
#############################################################################
## ##
## INSTALLATION: ##
## ++ http, json & tls packages are REQUIRED for this script to work. ##
## ++ Edit BlackNews.tcl script & place it into your /scripts directory. ##
## ++ add "source scripts/BlackNews.tcl" to your eggdrop.conf & rehash. ##
## ##
#############################################################################
## ##
## OFFICIAL LINKS: ##
## E-mail : BLaCkShaDoW[at]tclscripts.net ##
## Bugs report : http://www.tclscripts.net ##
## GitHub page : https://github.com/tclscripts/ ##
## Online help : irc://irc.undernet.org/tcl-help ##
## #TCL-HELP / UnderNet ##
## You can ask in english or romanian ##
## ##
## paypal.me/DanielVoipan = Please consider a donation. Thanks! ##
## ##
#############################################################################
## ##
## You want a customised TCL Script for your eggdrop? ##
## Easy-peasy, just tell me what you need! ##
## I can create almost anything in TCL based on your ideas and donations. ##
## Email blackshadow@tclscripts.net or info@tclscripts.net with your ##
## request informations and I'll contact you as soon as possible. ##
## ##
#############################################################################
## ##
## COMMANDS: ##
## ##
## To activate: ##
## .chanset +BlackNews | from BlackTools: .set #channel +BlackNews ##
## ##
## !bnews [?|help] - shows all available commands. ##
## ##
## !bnews max <no.> - set maximum number of news to output. ##
## ##
## !bnews <search terms> - shows a <no.> of news matching that criteria. ##
## ##
## !bnews save <keywords> [l=lang] [m=<max>] [c=<country>] ##
## ##
## !bnews list - prints a list with saved news keywords. ##
## ##
## !bnews country <country abbrev.> - defines default country for news. ##
## ##
## !bnews del <keywords> - removes <keywords> from automatic news output. ##
## ##
## !bnews lang [ro|en] - sets the language for script messages. ##
## ##
## !bnews newslang [ro|en] - sets the language for output articles. ##
## ##
## !bnews version - returns the script version. ##
## ##
#############################################################################
## ##
## EXAMPLES: ##
## ##
## <user> !bnews lang en ##
## -bot- [NEWS] Set default script language as: en (English). ##
## ##
## <user> !bnews newslang en ##
## -bot- [NEWS] Set default news language as: en (English). ##
## ##
## Search for a specific keyword(s): ##
## <user> !bnews google ##
## <bot> www.forbes.com (google): Buy Amazon, Apple And Google Slowly ##
## http://tinyurl.com/yafffla5 ; Date: Sun, 25 Nov 2018 19:09:49 GMT ##
## <bot> www.theverge.com (google): Google settled with a contractor after ##
## complaints of racial profiling - http://tinyurl.com/ybn9xnst ##
## Date: Sun, 25 Nov 2018 19:56:31 GMT ##
## <bot> searchengineland.com (google): Google showing zero results again ##
## for many time, calculations & conversions search results ##
## http://tinyurl.com/y8azvt2p ; Date: Mon, 26 Nov 2018 01:00:15 GMT ##
## ##
## List saved news keyword(s): ##
## <user> !bnews list ##
## -bot- [NEWS] #1. KeyWord: dragnea ; Lang: ro ; Country: - ; Max: 3 ##
## -bot- [NEWS] #4. KeyWord: btc ; Lang: en ; Country: - ; Max: 3 ##
## -bot- [NEWS] #5. KeyWord: brexit ; Lang: ro ; Country: - ; Max: 3 ##
## -bot- [NEWS] #6. KeyWord: coindesk ; Lang: en ; Country: - ; Max: 3 ##
## ##
#############################################################################
## ##
## PERSONAL AND NON-COMMERCIAL USE LIMITATION. ##
## ##
## This program is provided on an "as is" and "as available" basis, ##
## with ABSOLUTELY NO WARRANTY. Use it at your own risk. ##
## ##
## Use this code for personal and NON-COMMERCIAL purposes ONLY. ##
## ##
## Unless otherwise specified, YOU SHALL NOT copy, reproduce, sublicense, ##
## distribute, disclose, create derivatives, in any way ANY PART OF ##
## THIS CONTENT, nor sell or offer it for sale. ##
## ##
## You will NOT take and/or use any screenshots of this source code for ##
## any purpose without the express written consent or knowledge of author.##
## ##
## You may NOT alter or remove any trademark, copyright or other notice ##
## from this source code. ##
## ##
## Copyright 2008 - 2018 @ WwW.TCLScripts.NET ##
## ##
#############################################################################
#############################################################################
## CONFIGURATIONS ##
#############################################################################
###
# Tooken
#Visit https://gapi.xyz/ to get your free key now ;-)
#
set blacknews(tooken) "ec102abe207f8513c3348bb75360b39"
###