conlinism/dnbot — pull request #2 by jailbot (2014-08-12 21:25:32+00:00)
Title: Merge my code!

Better recognition of (!) and the keywords that trigger commands. Each command is encapsulated in a function rather than a long if statement.

Gif and Gifme both do the same thing. !trending will return one of the top 100 gifs, as will !gif or !gifme without an argument. !trending 20 will return the 20th gif.

Replaced the MySQL or whatever database you had previously with MongoDB. Right now its set up to work with #bottest not #DN. We still need to make an !aboutme and a !whois command. You can see the schema on line 46. It's pretty easy to access and set information using mongo and the mongoose addon, an example is on line 261.

There are a couple more things to do, its not 100% but I think it's ready to go live if you want to merge it somehow ¯\_(ツ)_/¯