Commit Graph

112 Commits

Author SHA1 Message Date
ffccdd8667 okay i might be done
for now
2016-02-25 10:08:27 -05:00
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
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
12c442d870 Final fix to wikipedia.lua. 2016-02-23 16:32:34 -05:00
4111fac0cb added regex-like Lua patterns plugin 2016-02-23 15:50:42 -05:00
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
1b95a1e0c9 Some moderation output changes. May rework the plugin later. 2016-02-22 22:58:32 -05:00
971b27335b db now saves every minute. Will make it configurable in future. 2016-02-22 18:07:16 -05:00
aa7e16013d Fix bot restarting twice because of /halt.
Fix antirtl kicks ending with error.
2016-02-22 15:53:17 -05:00
69de75bf72 hearthstone.lua bugfix 2016-02-21 22:09:02 -05:00
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
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
f61eabf946 Merge pull request #33 from TiagoDanin/Yandex
Migrating to yandex (translate)
2016-02-20 18:38:06 -05:00
6a9629286e bugfix 2016-02-20 18:29:45 -05:00
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
2fee3c90b7 Merge pull request #36 from bb010g/patch-1
Essential feature
2016-02-20 07:51:35 -05:00
a838ac1aa1 hashtag MakeWikipediaGreatAgain 2016-02-20 05:57:57 -05:00
b17c77eead fixed bug in wikipedia.lua 2016-02-20 05:53:28 -05:00
42d0e4cb0e administration.lua: fixed bug where users have no username
tg-install.sh: added info
2016-02-20 05:48:24 -05:00
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
bd4ec9b574 Essential feature 2016-02-18 21:20:10 -08:00
8da2ca9425 whoops 2016-02-14 03:54:09 -05:00
b1b4a0be6c Nothing important.
Old local changes I never committed.
2016-02-14 03:47:02 -05:00
7d23fc240e Merge branch 'master' of http://github.com/topkecleon/otouto 2016-02-14 03:46:40 -05:00
bcb1f43617 Fixed reddit.lua bug. 2016-02-14 03:46:27 -05:00
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
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
358d2c0b8d Migrating to yandex (translate) 2016-02-13 16:37:59 -03:00
a0e1eccd46 Merge pull request #30 from TiagoDanin/Chatter
New API for Simsimi
2016-02-13 06:42:56 -05:00
64735e2ff9 Merge pull request #29 from TiagoDanin/FIX
Solved "Connection error."
2016-02-13 06:42:42 -05:00
1fd25814aa FIX Shell 2016-02-05 20:29:29 -03:00
75daa07425 Solved "Connection error." 2016-01-22 19:20:08 -03:00
bf0a4da83c New API for Simsimi 2016-01-21 16:57:06 -03:00
e6ad1d1e69 Merge pull request #25 from heitorPB/master
Improved apod.lua
2016-01-20 18:11:10 -05:00
a83d627459 Improvements to Youtube 2016-01-18 16:52:21 -03:00
f56e2a4149 Minor improvements when sending image 2016-01-17 15:39:00 -03:00
c697df1762 better fix to fortune.lua 2016-01-17 09:15:05 -05:00
481ce8b484 Fixed bug furtune
Fixed bug furtune:
To message: "fortune: not found"
2016-01-17 10:22:18 -03:00
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
3ce0a0965d Improved apod.lua 2016-01-15 19:35:09 +02:00
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
77fd9b07a4 Merge branch 'master' of http://github.com/topkecleon/otouto 2016-01-14 22:39:34 -05:00
c94c8e3b4d minor improvements 2016-01-14 22:39:24 -05:00
840cf2f799 last.fm -> librefm in bot replies 2016-01-15 04:34:25 +01:00
5b9761552c Add librefm plugin
copypasta of drews lastfm
2016-01-15 04:30:53 +01:00
e04abca769 apod.lua: now uses HD links 2016-01-14 15:49:37 -05:00
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
be6ecc04e2 Added APOD plugin.
Gets Astronomy Picture of the Day, from NASA.
2016-01-14 21:38:26 +02:00
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
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