summaryrefslogtreecommitdiffstats
path: root/wat/db.go
Commit message (Collapse)AuthorAgeFilesLines
* Configurable database pathGeorg Pfuetzenreuter2024-10-101-2/+2
| | | | | | | 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>
* Change host lookup to be optionalGeorg Pfuetzenreuter2024-10-021-1/+5
| | | | | | | | | | | 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>
* initial commitmogad0n2021-03-101-7/+7
|
* fixes #5alex2019-07-101-0/+4
|
* fixes #7alex2019-06-281-4/+10
|
* Added time limited bankrupcy, steroids for benching (don't persist across ↵alex2019-01-041-4/+11
| | | | restarts), removed aliases from command list, ping, strongest, don't allow vlk to roll.
* int64 -> uint64 for coins, disable noisy logging, turned off wattery (it was ↵alex2018-12-031-1/+2
| | | | quickly abused), made anarchy less likely to win and time limited
* CanAct func, used in Riot and Liftalex2018-11-161-0/+1
|
* added actions table, makes it easier to add time based commandsalex2018-11-151-23/+33
| | | | | | | | 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
* changed coins to uint64 and started using uints all over the placealex2018-11-141-3/+9
| | | | | added toplost removed an ignore
* formatting changes from goimportalex2018-11-081-21/+25
| | | | | | | | | 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
* fixed rand to use crypto randalex2018-10-261-0/+6
| | | | | fixed imp with imps but should go back to privmsg detection give the bot money when people lose lel
* fixed some bugs, fixed some debug behaviour, changed over to a command -> ↵alex2018-10-231-3/+3
| | | | method map to avoid sending spurious messages
* Reimplemented python bot in golang, skipped a few featuresalex2018-10-211-0/+94