summaryrefslogtreecommitdiffstats
path: root/wat/bot.go
Commit message (Collapse)AuthorAgeFilesLines
* Implement Jeopardy cashoutGeorg Pfuetzenreuter2024-09-291-0/+62
| | | | | | | | | | | | | | | | | This adds integration between Watbot and the Limnoria Jeopardy plugin. If a game of Jeopardy ends, Watbot will parse the finishers message and pay a small share of the Jeopardy price money in the form of Watcoins. To avoid abuse, only Jeopardy finishing messages from authorized bots are considered. An IRC user is considered an authorized bot if the hostmask matches one of the configured bot hostmasks, and if the nickname is configured for "jeopardy" in the newly introduced bot games configuration. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> Add sample message to Jeopardy logic Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
* Implement automatic channel joiningGeorg Pfuetzenreuter2024-09-281-1/+14
| | | | | | | | Avoid the need for an administrator to join the bot to channels by implementing a configuration option allowing the passing of channels the bot should always join to by itself upon startup. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
* Replace redundant logic in Admin()Georg Pfuetzenreuter2024-09-281-7/+1
| | | | | | | The Allowed() function already implements this loop, use it to reduce redundant code. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
* Implement configuration fileGeorg Pfuetzenreuter2024-09-281-2/+3
| | | | | | | | Abstract settings which commonly differ between instances to a YAML based configuration file to allow for easy administration without the need for modifying the source code. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
* Add myself as adminGeorg Pfuetzenreuter2024-09-211-1/+7
| | | | | | | For some administrative operations, such as joining channels, it would be useful if I could "imp"ersonate the bot. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
* initial commitmogad0n2021-03-101-4/+4
|
* moved config around somewhatalex2019-01-041-10/+25
|
* int64 -> uint64 for coins, disable noisy logging, turned off wattery (it was ↵alex2018-12-031-1/+1
| | | | quickly abused), made anarchy less likely to win and time limited
* changed coins to uint64 and started using uints all over the placealex2018-11-141-1/+1
| | | | | added toplost removed an ignore
* formatting changes from goimportalex2018-11-081-11/+12
| | | | | | | | | 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-4/+4
| | | | | fixed imp with imps but should go back to privmsg detection give the bot money when people lose lel
* misc improvementsalex2018-10-251-5/+9
| | | | | | | added self reference, allowing the bot to accrue currency messed about with some messages (removed swears, changed 'schlorped', etc) improved send output regular wattery to make 'wat' interesting
* added resting, messed about with stuffalex2018-10-231-3/+25
|
* fixed some bugs, fixed some debug behaviour, changed over to a command -> ↵alex2018-10-231-2/+17
| | | | method map to avoid sending spurious messages
* added admin command for impersonating any irc commandalex2018-10-211-14/+23
| | | | remove db
* Reimplemented python bot in golang, skipped a few featuresalex2018-10-211-0/+90