You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
8 years ago | |
|---|---|---|
| deps | 8 years ago | |
| lorebot | 8 years ago | |
| .gitignore | 8 years ago | |
| Makefile | 8 years ago | |
| config.gcfg | 8 years ago | |
| readme.md | 8 years ago | |
readme.md
Lorebot
This is the bot running over at the sampled slack.
Commands
2 parameters
lore: get a specific lorerip: rest in piece a targetsummon: summon the specified targetgnu: educate the target on freedomsnewdubs: add a new dubs imagermdubs: remove an existing dubs imagecreated: lookup when lore was created (some old lore wont have this field)owner: lookup who created a lore (some old lore wont have this field)removedby: lookup who removed a loreremoved: lookup when lore was removed
1 parameter
help: display help message 1help2: display help message 2rng: display random lore with the new rng algorithmdepricatedrng: select random lore with the old rng algorithmroll: generate a random 8 digit integerd20: roll a 20 sided dierr: play russian roulettedice: roll a 6 sided diedubs: pick a random 'dubs checkum' image and rolllisten: its what you hearinlorelist: generate a list of all loreremovedlore: generate a list of removed lorelorestatus: display the number of active lore
Building
This project makes use of the make command. The following commands are supported.
all: dynamically compiles/builds the bot. outputs binary file tobin/run: runs the botstat: statically compiles/builds the bot. outputs binary file tobin/docker: builds a docker imageaci: builds an ACI imagetest_docker: tests the docker imagetest_aci: tests the ACI imageclean: cleans the project directory of any temp files
Configuration
This bot takes advantage of the gcfg configuration which follows the INI syntax.
config.gcfg
[lorebot]
loglevel = "debug"
slackdebug = false
bootstrapdelay = 1
AuthFile = ".auth"
[redis]
host = "127.0.0.1:6379"
password = ""
loglevel: loglevel for the app (debug/info/error)slackdebug: wheather or not to show slacks API debuggingbootstrapdeplay: number in seconds to delay binding the bot to redis (useful in containers)AuthFile: name/location of file containing the slack keyhost: location of the redis serverpassword: password of the redis server
.auth
xoxb-86456556-IJDJksfkejsjdfj
this is a key generated by slack for the bot