Commit graph

49 commits

Author SHA1 Message Date
moneromooo
8462467c40 Shutdown redis on normal exit 2015-01-10 13:53:42 +00:00
moneromooo
5a29cf9d34 Add some error checking for addbalance 2015-01-10 13:53:22 +00:00
moneromooo
a53b4b8b87 Bump copyright for 2015 2015-01-07 17:52:34 +00:00
moneromooo
e1c881860f Module improvements
Register modules, along with their optional help function
Allow running ambiguous commands by prefixing with "modulename:"
2015-01-03 18:36:37 +00:00
moneromooo
cb9a2fccae Factor RetrieveTipbotBalance to utils and add RetrieveHouseBalance 2015-01-01 17:34:48 +00:00
moneromooo
44d6f01378 Move module specific help to modules 2015-01-01 14:23:34 +00:00
moneromooo
83d64251af Move irc to ircutils to not conflict with new irc module 2015-01-01 11:42:06 +00:00
moneromooo
a59e883626 Modules can now be reloaded 2015-01-01 10:06:09 +00:00
moneromooo
c79300f588 Mention !commands in !info 2014-12-31 11:42:27 +00:00
moneromooo
2c8ff697bd Rejig !commands to be less spammy
Commands are now organized per module, and full command sysnopsis
is only given for a module at a time
2014-12-31 10:32:50 +00:00
moneromooo
85a7348571 Fixup some import issues 2014-12-31 10:30:07 +00:00
moneromooo
34d73d6460 Make modules freestanding
Remove __init__.py from tipbot/modules, allowing loading them
without having to declare them first
2014-12-30 13:12:13 +00:00
moneromooo
47dd9de0e1 Replace user facing mentions of tipbot with the bot name 2014-12-29 21:46:45 +00:00
moneromooo
6b6a1a67e7 Structural overhaul
Split the tipbot in modules:
- main modules to contain base functions by theme
- coin specs, to define a coin's specifics
- optional modules, defining commands/behaviors
2014-12-29 17:39:17 +00:00
moneromooo
7cfc14faf6 Make payment ID coin specific, for inter blockchain privacy 2014-12-28 12:49:51 +00:00
moneromooo
2212021091 Make the IRC welcome "trigger" line a setting 2014-12-28 11:45:17 +00:00
moneromooo
670b9c49f8 Add logs when connecting to IRC and Redis 2014-12-28 11:34:57 +00:00
moneromooo
f25f905fca Delay at all lines sent to IRC to try to not trigger the spam blackhole 2014-12-28 11:34:57 +00:00
moneromooo
7efb942a96 s/bitmonerod/daemon/ 2014-12-28 11:34:54 +00:00
moneromooo
2dda53240c Move coin specs to a separate module, and make a monero module 2014-12-28 11:34:02 +00:00
moneromooo
39b2e64516 Add copyright and repo url in info 2014-12-27 19:34:02 +00:00
moneromooo
a174ece136 Add rainactive command 2014-12-27 19:31:54 +00:00
moneromooo
dd98853861 Cleaner code for optional parameters 2014-12-26 17:18:29 +00:00
moneromooo
79f3a00415 Keep track of users last active time 2014-12-26 16:57:03 +00:00
moneromooo
9389e043e4 Handle multi-character prefixes in address sanity checking 2014-12-26 12:16:08 +00:00
moneromooo
b7fe9b0062 Allow withdrawing only part of a balance 2014-12-26 12:01:26 +00:00
moneromooo
345234ded0 Log everything send to IRC 2014-12-25 22:03:51 +00:00
moneromooo
159528d7f7 Cache registered user status
Speeds up acting on a user's command when we previously determined
they were registered. Also should be nicer to NickServ.
2014-12-25 20:43:45 +00:00
moneromooo
d3e4b99f99 Fix amount in tip log 2014-12-25 20:43:26 +00:00
moneromooo
15da80978d Clear user lists when (re)connecting
Also remove a debug log parsing user lists
2014-12-25 20:22:29 +00:00
moneromooo
e092188f80 Prefix logs with embedded newlines with time/type header 2014-12-24 18:49:05 +00:00
moneromooo
244b11db7d Handle QUIT (quits all channels)
Also fix part log wording
2014-12-24 10:26:59 +00:00
moneromooo
b0871e2f9a Add a bit more delays to avoid spam protection 2014-12-23 11:16:22 +00:00
moneromooo
0a240e63fa Withdrawal enable/disable improvements
Allow disabling withdrawals by admin, allow ignoring errors,
and misc cleanup.
2014-12-23 11:14:35 +00:00
moneromooo
327a3efa7f Licence as GPLv2+. 2014-12-23 10:47:56 +00:00
moneromooo
8e0d6957d3 Detect a few "kicked from IRC" conditions, reconnect after a pause 2014-12-23 10:24:19 +00:00
moneromooo
5224a0ef58 Only consider ! followed by a letter to be commands
Avoids error spam to users
2014-12-23 09:42:55 +00:00
moneromooo
72ddb11dff Remove references to tacoshi, and make denominations data driven 2014-12-23 09:28:37 +00:00
moneromooo
876bf44545 Make this more generic - should work for most cryptonote coins now 2014-12-22 21:52:37 +00:00
moneromooo
9464decc86 Make sure we don't try to rain on nobody if the no-rain list is thick 2014-12-22 20:50:47 +00:00
moneromooo
55981cf192 Add an optional list of nicks not to rain upon 2014-12-22 20:48:11 +00:00
moneromooo
adff17d735 Replace another %.16f with AmountToString 2014-12-22 20:46:58 +00:00
moneromooo
c8f765f361 Make the tipbot nick configurable 2014-12-22 17:03:03 +00:00
moneromooo
d6db1c2a5d Let python know that yes, these are globals... 2014-12-22 16:39:20 +00:00
moneromooo
6fb87a02ea fix amount display in tip, add sleeps to avoid freenode spam protection 2014-12-22 14:25:09 +00:00
moneromooo
b931783123 Make admins a configuration list 2014-12-22 13:38:48 +00:00
moneromooo
df5fe49c82 Misc fixes
User tracking fixes
Ensure scan_block_height is correctly set at start
Switch to fluffypony's testnet bitmonerod
Regard any IRC input as a ping for reconnect timeout purposes
2014-12-22 13:30:59 +00:00
moneromooo
f8cf06c197 Rain, withdraw, wallet scanning, logs, lots of cleanup
I should commit more often.
2014-12-21 18:50:24 +00:00
moneromooo
ca3f55bc35 First version 2014-12-09 10:00:19 +00:00