topkecleon
6b3e3ae8a6
whoami.lua: Rewrite. Added markdown support.
...
administration.lua: Bugfixes and improvements. v1.6.1.
2016-03-28 02:15:46 -04:00
topkecleon
5762e12a48
administration.lua:
...
Switched to drua-tg.lua.
Groups are now listed according to most recent activity.
whoami.lua:
Displays channel/supergroup IDs properly.
2016-03-27 08:30:41 -04:00
topkecleon
9377107508
Bugfixes and updated readme.
2016-03-26 06:12:01 -04:00
topkecleon
495cc8d0c1
translate.lua now enquotes translations.
...
echo.lua now enquotes echos in supergroups.
2016-03-23 19:54:18 -04:00
topkecleon
b5ea8f3bbe
bunch of stuff
...
administration.lua: everything's better; automatic migration.
database.usernames -> database.users. View with /me.
Nicks and lastfm usernames moved to database.users; auto migrate.
2016-03-22 06:16:26 -04:00
topkecleon
aebb90f9b4
Added "setandget.lua" plugin.
2016-03-15 16:37:19 -04:00
topkecleon
a2bdecb7bb
nick.lua:
...
Less stupidly written.
Owner can now set other users' nicknames via reply.
patterns.lua:
Minor code changes.
2016-03-08 04:17:55 -05:00
Tiago Danin
3ef4c01295
FIX cli_port
2016-03-05 15:15:53 -03:00
topkecleon
f529bc9ad8
help.lua and about.lua: /start now triggers about.lua
...
blacklist.lua: Added username support.
2016-03-04 17:08:21 -05:00
topkecleon
ec64f18138
lastfm.lua: Added timeout to prevent bot from locking up.
2016-03-04 13:06:13 -05:00
topkecleon
664c2296ad
administration.lua:
...
version 1.3
reply-based commands will now work as you would expect when
replying to add/remove messages
some information messages have been changed
2016-02-26 22:06:38 -05:00
topkecleon
57d466d0fb
clean up some old crap
2016-02-26 11:46:14 -05:00
Brayden
eaf379bf88
Fix title escaping
2016-02-25 20:50:51 -08:00
Brayden
921bba1cff
Increase reliability of Wikipedia
...
Pulls directly from the unescaped URL now and feeds that into `wurl` instead of the escaped title.
2016-02-25 20:14:25 -08:00
Brayden
b5c9527c41
Fix Wikipedia links with special characters
...
Wonderfully untested, but it Should Work™.
2016-02-25 19:51:12 -08:00
Tiago Danin
99e7449395
FIX shout
2016-02-25 12:15:00 -03:00
topkecleon
ffccdd8667
okay i might be done
...
for now
2016-02-25 10:08:27 -05:00
topkecleon
353d6eb807
cron jobs will now occur every sixty seconds. Maybe configurable
...
in the future.
Updated readme from manual. Manual will now be generated from
readme.
2016-02-25 09:05:08 -05:00
topkecleon
ddaf304460
administration.lua:
...
Version 1.2.
Rules are now in a table. Automatic migration until 1.4.
New command: changerule
/changerule <i> <rule>
Change a rule. Use "/changerule 1 --" to delete rule 1.
ahelp:
Only displays commands the user can use.
Attempts to PM before group.
desc:
Now displays group's flags and their "short" descs.
Attemps to PM before group.
antisquig:
Second RTL character added to, and Strict.
dilbert.lua:
New command: dilbert
/dilbert [YYYY-MM-DD]
Returns a date's or the latest Dilbert strip.
Caches strips so they are not downloaded more than once.
gImages.lua & youtube.lua:
Title now displayed for links.
The "zero-width non-joiner" was a stupid idea.
help.lua:
Commands now properly bulleted.
utilities.lua:
download_file():
Now allows for specification of a path instead of /tmp/.
2016-02-25 04:42:13 -05:00
topkecleon
12c442d870
Final fix to wikipedia.lua.
2016-02-23 16:32:34 -05:00
topkecleon
4111fac0cb
added regex-like Lua patterns plugin
2016-02-23 15:50:42 -05:00
topkecleon
dcc51d4f05
administration.lua: banlist is merged with global blacklist.
...
Merge will commence automatically and users should not notice it,
except that all blacklisted users are now globally banned and
vice-versa.
2016-02-23 06:15:48 -05:00
topkecleon
1b95a1e0c9
Some moderation output changes. May rework the plugin later.
2016-02-22 22:58:32 -05:00
topkecleon
971b27335b
db now saves every minute. Will make it configurable in future.
2016-02-22 18:07:16 -05:00
topkecleon
aa7e16013d
Fix bot restarting twice because of /halt.
...
Fix antirtl kicks ending with error.
2016-02-22 15:53:17 -05:00
topkecleon
69de75bf72
hearthstone.lua bugfix
2016-02-21 22:09:02 -05:00
topkecleon
02a7d411fa
Database is now centralized. All data is stored in tables within the database table,
...
which is automatically saved. Please be sure to always stop the bot with /halt to
prevent data loss.
2016-02-21 14:28:40 -05:00
topkecleon
03ce363c98
Switched from dkjson to cjson. lua-cjson is now a dependency.
...
administration.lua now saves its database every minute. This will be changed in a
future update.
2016-02-21 00:21:48 -05:00
Drew
f61eabf946
Merge pull request #33 from TiagoDanin/Yandex
...
Migrating to yandex (translate)
2016-02-20 18:38:06 -05:00
topkecleon
6a9629286e
bugfix
2016-02-20 18:29:45 -05:00
topkecleon
42fb9411bb
totally essential bug fix for totally essential feature @bb010g
...
https://github.com/topkecleon/otouto/pull/36
2016-02-20 08:04:23 -05:00
Drew
2fee3c90b7
Merge pull request #36 from bb010g/patch-1
...
Essential feature
2016-02-20 07:51:35 -05:00
topkecleon
a838ac1aa1
hashtag MakeWikipediaGreatAgain
2016-02-20 05:57:57 -05:00
topkecleon
b17c77eead
fixed bug in wikipedia.lua
2016-02-20 05:53:28 -05:00
topkecleon
42d0e4cb0e
administration.lua: fixed bug where users have no username
...
tg-install.sh: added info
2016-02-20 05:48:24 -05:00
topkecleon
180cd6078a
Added administration.lua.
...
Adds self-hosted, single-realm administrative functions to otouto.
Check out the README for a detailed description.
Also added msg.from.name, which is msg.from.first_name + msg.from.last_name (if it
exists), because I'm too lazy to build it each time.
Fixed a crash-causing bug (ironically) in the handle_exception() function.
2016-02-20 05:07:20 -05:00
Brayden
bd4ec9b574
Essential feature
2016-02-18 21:20:10 -08:00
topkecleon
8da2ca9425
whoops
2016-02-14 03:54:09 -05:00
topkecleon
b1b4a0be6c
Nothing important.
...
Old local changes I never committed.
2016-02-14 03:47:02 -05:00
topkecleon
7d23fc240e
Merge branch 'master' of http://github.com/topkecleon/otouto
2016-02-14 03:46:40 -05:00
topkecleon
bcb1f43617
Fixed reddit.lua bug.
2016-02-14 03:46:27 -05:00
topkecleon
f65e145bc3
Fixed irresponsiveness in gSearch.lua when dealing with CJK characters.
...
Resolved issue #34 .
Result title truncation was screwing with CJK encoding.
Will rely on Telegram's built-in link truncation for now.
2016-02-14 03:40:54 -05:00
topkecleon
9d43f1ed8c
Fixed CJK bug in gSearch.lua.
...
Title truncation on line 61 was breaking encoding of long characters.
We'll let Telegram's built-in link truncation handle this for now.
2016-02-14 03:36:25 -05:00
Tiago Danin
358d2c0b8d
Migrating to yandex (translate)
2016-02-13 16:37:59 -03:00
Drew
a0e1eccd46
Merge pull request #30 from TiagoDanin/Chatter
...
New API for Simsimi
2016-02-13 06:42:56 -05:00
Drew
64735e2ff9
Merge pull request #29 from TiagoDanin/FIX
...
Solved "Connection error."
2016-02-13 06:42:42 -05:00
Tiago Danin
1fd25814aa
FIX Shell
2016-02-05 20:29:29 -03:00
Tiago Danin
75daa07425
Solved "Connection error."
2016-01-22 19:20:08 -03:00
Tiago Danin
bf0a4da83c
New API for Simsimi
2016-01-21 16:57:06 -03:00
Drew
e6ad1d1e69
Merge pull request #25 from heitorPB/master
...
Improved apod.lua
2016-01-20 18:11:10 -05:00
Tiago Danin
a83d627459
Improvements to Youtube
2016-01-18 16:52:21 -03:00
Tiago Danin
f56e2a4149
Minor improvements when sending image
2016-01-17 15:39:00 -03:00
topkecleon
c697df1762
better fix to fortune.lua
2016-01-17 09:15:05 -05:00
Tiago Danin
481ce8b484
Fixed bug furtune
...
Fixed bug furtune:
To message: "fortune: not found"
2016-01-17 10:22:18 -03:00
topkecleon
81b67d0aa3
Fixed issue #16 .
...
reactions.lua: commands can now be run with @username.
about.lua: No longer links otouto channel by default (that was an accident).
2016-01-16 23:57:25 -05:00
Heitor P. de Bittencourt
3ce0a0965d
Improved apod.lua
2016-01-15 19:35:09 +02:00
topkecleon
f2b243a47c
"fixed" #17
...
about.lua: stops all forwarded messages
floodcontrol.lua: logs to config.log_chat else console
2016-01-14 23:08:49 -05:00
topkecleon
77fd9b07a4
Merge branch 'master' of http://github.com/topkecleon/otouto
2016-01-14 22:39:34 -05:00
topkecleon
c94c8e3b4d
minor improvements
2016-01-14 22:39:24 -05:00
Tommy Jans
840cf2f799
last.fm -> librefm in bot replies
2016-01-15 04:34:25 +01:00
Tommy Jans
5b9761552c
Add librefm plugin
...
copypasta of drews lastfm
2016-01-15 04:30:53 +01:00
topkecleon
e04abca769
apod.lua: now uses HD links
2016-01-14 15:49:37 -05:00
topkecleon
4f78323db7
Changes to apod.lua:
...
- Now uses demo key if key is not configured.
- Removed newlines in doc.
- Removed some unused code.
2016-01-14 14:56:30 -05:00
Heitor P. de Bittencourt
be6ecc04e2
Added APOD plugin.
...
Gets Astronomy Picture of the Day, from NASA.
2016-01-14 21:38:26 +02:00
topkecleon
fe549add63
Better logging, new preview.lua plugin.
...
When an exception is caught, info will be printed to the config.log_chat or the console.
/preview will give an "unlinked" preview for the link.
youtube.lua now uses config.google_api_key.
youtube.lua now uses unlinked previews.
lastfm.lua gives more informative error messages.
New utility: handle_exception().
2016-01-13 13:00:17 -05:00
topkecleon
c50b1ca3fa
Username cachine and various fixes.
...
Usernames seen by the bot are now cached in the $usernames table. To get the ID associated with a
username, use the resolve_username() function from utilities.lua.
The table_size() function in utilities.lua will tell you the number of items in a key/pair table.
about.lua no longer displays a link preview in the about message.
currency.lua now accepts decimal arguments for the amount.
luarun.lua now correctly displays "false" return values.
moderation.lua will no longer send "I do not administrate this group".
2016-01-12 05:22:28 -05:00
topkecleon
509947c28e
lastfm bugfix
2016-01-08 22:42:31 -05:00
topkecleon
26c1299374
Rewrote help.lua and added markup support to several plugins.
...
help.lua has been rewritten to support "/help command".
New variable "command" has been added to plugins for the syntax (w/out slash) to be displayed in main
help message. "doc" will be displayed upon "/help command".
Output of >12 plugins has been reformated to utilize markup.
There is a fairly standard style throughout plugins.
get_word() in utilities.lua now has defaults for nil arguments.
2016-01-08 08:44:37 -05:00
topkecleon
9070a44c8f
Improved triggers for many plugins.
...
Redone README to match the website.
Bot now supports deep linking / start payloads.
lastfm.lua now notifies a user when his default username is saved.
antisquig is now part of moderation.lua.
2016-01-07 22:30:12 -05:00
topkecleon
88a506492b
some improvements
2015-12-14 14:48:17 -05:00
topkecleon
c827004bc7
fixed default config
...
rewrote get_word()
2015-12-13 16:31:22 -05:00
topkecleon
a0bbdba135
split admin.lua into multiple plugins to make way for the future
...
added shout.lua
2015-12-13 09:25:49 -05:00
topkecleon
c8a90c5c7f
added attribution for antisquig
2015-12-10 11:34:20 -05:00
topkecleon
f89c3fae5e
Added Google API/CSE key vars to config, minor changes to gImages.lua
2015-12-05 10:03:43 -05:00
Drew
6cc821f7c7
Merge pull request #15 from TiagoDanin/patch-4
...
Fix Google Search Images
2015-12-05 09:31:45 -05:00
topkecleon
80f363de44
markdown support in messages
...
other changes & improvements
2015-12-05 09:30:52 -05:00
Tiago Danin
bda76a729d
Fix Google Search Images
2015-12-05 11:23:32 -03:00
topkecleon
c5c3660de4
updated readme, changed some things
2015-12-04 09:56:48 -05:00
topkecleon
4bd0a72b5a
For photo messages, bot will look for commands in the caption if available.
...
Fixed bug in chatter.lua where the bot will attempt to reply to photo messages.
2015-11-29 06:41:53 -05:00
topkecleon
faa86ab8fd
Added Hearthstone plugin.
2015-11-29 04:45:00 -05:00
topkecleon
33adc43876
Disabled reply chatter by default.
2015-11-26 22:25:03 -05:00
topkecleon
326b8b887c
chatter.lua now responds to @username as well.
2015-11-26 18:55:57 -05:00
topkecleon
4f191ac57a
/modkick and /modban can now be used with reasons without failing to
...
kick.
2015-11-26 18:40:01 -05:00
topkecleon
61b9140eca
Fixed bugs in wikipedia.lua, improved chatter.lua.
2015-11-26 05:34:16 -05:00
topkecleon
cacfea1fa5
otouto v3 is out!
...
Everything reworked and rewritten.
Antisquig is now a plugin to work with moderation.lua.
The bot can now upload photos, stickers, and other files.
Return values in plugin functions to affect the bot's behavior.
All this and more!
2015-11-24 21:22:04 -05:00
Tiago Danin
951f5b0cd0
Fix bug
...
- Change in location of response: (res.msg)
2015-11-21 10:14:56 -03:00
topkecleon
9a7f166fd4
removed spaghetti code
...
updated version number
2015-09-24 19:44:43 -04:00
topkecleon
a4b0a7ebed
added youtube (@TiagoDanin)
...
improved cron
2015-09-23 14:48:54 -04:00
Tiago Danin
e9c025c104
Adding youtube plugin
...
Search plugin on youtube
2015-09-23 15:12:06 -03:00
topkecleon
c7ba76e72b
added spotify plugin (thanks to @TiagoDanin)
...
fixed kickass plugin (required HTTPS)
included console.lua (for those who may use it)
included link to otouto update channel in about.lua
2015-09-22 22:27:36 -04:00
topkecleon
4c6be5b899
minor changes
2015-09-21 19:34:02 -04:00
topkecleon
2d2933c8e5
add hearthstone plugin
...
in case of flood control, bot will now answer in PM if possible
2015-09-07 11:19:36 -04:00
topkecleon
60570e90f3
added cron jobs for plugins
...
added example plugin with documentation
added liberbot-compliant flood control
see Liberbot Support for details on getting compliant
added Kickass Torrent plugin
various bugfixes
all files seem to have been marked changed due to a shift in platform
I will do a clean clone and testing to ensure there is no issue.
2015-08-28 23:15:01 -07:00
topkecleon
2e01ceec71
added cats!
...
minor fixes to a bunch of stuff
2015-08-23 02:46:34 -04:00
topkecleon
2e31f2f604
Users can now display a list of reactions.lua options using /reactions, a help message
...
dynamically generated at plugin load and streamlined into the reactions system.
Added doc for /reactions.
2015-08-23 02:19:45 -04:00
topkecleon
5c2591152e
Users can now display a list of reactions.lua options using /reactions, a help message dynamically
...
generated at plugin load and streamlined into the reactions system.
2015-08-23 02:10:37 -04:00
topkecleon
4c72543315
no typing by default
...
various bugfixes
blacklisting support (blacklist.lua)
json file created automatically
users are blacklisted and unblacklisted via reply with /blacklist
nicknames support (nick.lua)
json file created automatically
users set nick by /nick
"people" section of config deprecated
moderation.lua improvements
administrators can now run mod commands
administrators are now listed with moderators
modlist improved to be smarter and look better
administrators can no longer be promoted to moderator
/hammer command for admins to perform realm-wide ban
2015-08-18 05:55:25 -04:00
topkecleon
fc4908f033
fixed potential exploit in translate.lua
2015-08-10 04:33:14 -04:00
topkecleon
66d50ce6f5
moderation.lua bugfix
2015-08-09 14:21:33 -04:00
topkecleon
1a0b61814e
blacklist now in json file
...
various bugfixes
2015-08-08 20:53:46 -04:00