Commit Graph

14 Commits

Author SHA1 Message Date
dfe7deff72
Configurable database path
Allow the database file to reside in a user defined location instead of
requiring it to be in the working directory.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-10-10 00:04:16 +02:00
accf16c92a
Change host lookup to be optional
Some parts of the logic do not make use of the host column in the
players table, allow the field to be empty and do not query for an empty
value (which might return bogus entries) if no value is passed to the
lookup function.
This additionally avoids the need for the hardcoded initial host when
configuring the bot player.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-10-02 22:30:06 +02:00
mogad0n
379891b2d0
initial commit 2021-03-10 19:33:48 +05:30
alex
304fcff75c fixes #5 2019-07-10 16:29:44 +01:00
alex
62144ce8a1 fixes #7 2019-06-28 18:54:32 +01:00
alex
d4c4e38ba8 Added time limited bankrupcy, steroids for benching (don't persist across restarts), removed aliases from command list, ping, strongest, don't allow vlk to roll. 2019-01-04 09:20:39 +00:00
alex
ca91956e27 int64 -> uint64 for coins, disable noisy logging, turned off wattery (it was quickly abused), made anarchy less likely to win and time limited 2018-12-03 23:21:11 +00:00
alex
88d612e041 CanAct func, used in Riot and Lift 2018-11-16 01:01:29 +00:00
alex
7f72f6e3ec added actions table, makes it easier to add time based commands
reactivated bench with a 2400 limit
help command just outputs command structs because that's easier
lower all commands to account for caps mistakes
some hardcoded nick bits :\
removed disused db structs
2018-11-15 02:11:45 +00:00
alex
5c24c985d3 changed coins to uint64 and started using uints all over the place
added toplost
removed an ignore
2018-11-14 22:38:32 +00:00
alex
237d91de16 formatting changes from goimport
added a link to source, healing
parse ints through one function and return helpful errors that can be used as return values
added more error checking
improved some output
made some more joke methods
lazily added more if conditions for people i'm sick of
2018-11-08 10:40:08 +00:00
alex
db4c1257b9 fixed rand to use crypto rand
fixed imp with imps but should go back to privmsg detection
give the bot money when people lose lel
2018-10-26 12:40:27 +01:00
alex
9120ee3691 fixed some bugs, fixed some debug behaviour, changed over to a command -> method map to avoid sending spurious messages 2018-10-23 00:15:28 +01:00
alex
61b84d9fd9 Reimplemented python bot in golang, skipped a few features 2018-10-21 13:04:35 +01:00