A discord bot
Not hosted; not open for public usage. You are, however, welcome to host your own version, or to copy the trivia-related cogs into your bot.
Contact me on discord: ala#2941
- Initial release.
- TriviaCommands.py:
- Combined question jsons into one json file.
- Replaced pickling
Question
objects with json-ing question dictionaries. - Removed
Question
class. - Removed some useless attributes from the
User
class. - Rewritten the
Server
class. - Removed
TriviaCommands
' static methodbypassquestion
in favour ofServer
'snextquestion
. - Added
User.add_correct()
andUser.add_incorrect()
. - Changed getscoreboard to use member.name instead of member.display_name.
- process_files.py:
- Rewrote the entire thing to accomodate single json file.
- Usage help: Place all questions.json in
./botstuff/jsonfiles
. Rename if necessary. Runprocess_files.py
, and they'll automatically be added to the mainquestions.json
file.
- TriviaCommands.py:
- Returned bot to working order.
- Made bot retell the question if it was already asked with
^trivia
and^starttrivia
was invoked. - Bot went bonkers if
^starttrivia
was called several times. Now it only runs one instance of^starttrivia
at a time. - Bot forgot player scores if restarted. Fixed.
- OwnerCommands.py:
- Added ^version command.
- Added shortcuts for cog-reloading. ^rld tc for TriviaCommands, and ^rld gc for OwnerCommands.
- Discovered aliases. Went bonkers.
- Rewrote a great deal of code.
- TriviaCommands.py:
- Now only contains user-specific commands
- HelperFunctions.py:
- Contains User and Server, along side some helper functions.
- StaffTrivia.py:
- Contains staff-specific commands.
- Changed prefix to
,
.
- HelperFunctions.py:
- Fixed an error which occurs if the server's directory did not exist(Yes, I know, should've seen this coming).
- StaffCommands.py:
,resetscore
can now be used to reset someone else's score by mentioning them.
- TriviaCommands.py:
- Bot now notifies if a user tries to answer after already using up their answer.
- Bot now processes concurrent answers more efficiently; processes them all, but only one gets into the "correct answer" if statement, as opposed to processing them one at a time.
- Bot no longer accepts empty
,a
commands.
- Added README.md.
- TriviaCommands.py:
- Removed some redundant checks in
,a
.
- Removed some redundant checks in
- HelperFunctions.py:
- Hopefully™ fixed the
User
class'smention
property.
- Hopefully™ fixed the
- Better logging.
- ManageCommands.py:
- Retroactive cog reload shortcuts; they depend on the capital letters in a given file name. For example, ManageCommands.py has a shortcut of
mc
.
- Retroactive cog reload shortcuts; they depend on the capital letters in a given file name. For example, ManageCommands.py has a shortcut of
- Fixed the dumbest error in existence.
- Added the
,ev
command. May be useful in debugging. Owner only, of course.
- Minor message fixes.
- I have no Idea what I did, but bugs were fixed. Many bugs.
- Spam-proofing fixes
- Rewrote
,a
, bot now only accepts written answers(read: no option-number answers) and only processes those which are actually one of the answers. Anything else is ignored. - Overhauled the point system. A user now gets 10 points for each correct answer, and loses 5 points for each incorrect answer, as to discourage spamming.
- Rewrote
- Added comments to the code.
- The
dispense
andgetscoreboard
functions are now Server methods. - Added
,restartbot
command. Does what you expect it to. - Bot now automatically removes all incorrect messages after a 2 second timeout.
- Bot now uses emoji(May I be forgiven for this) to indicate the response at a glace.
- Adjusted timeout before removing messages
- Fixed some un-
await
ed calls.
- Fixed case sensitivity in
,a
- Bot now writes errors to
error.txt
- Added excel2json to project
- Optimized questions.json format
- Bot now writes errors to
error.txt
AND prints it into the command window. - The restart command is now more or less reliable.
- Scoreboard fetching is new a bit better-- the user class now has a
name
property, instead of getting a newmember
object for each member there is.
- Added TriviaNight mode. Basically, now everyone can get questions from the normal questions.json file, by default. You enable TriviaNight, and the questions file gets switched out for another one, and all commands get locked down, like on previous versions.
- Refactored
Helperfunctions.py
intoTriviaBackend.py
- Added
,tn
and,endtrivianight
commands, for toggling TriviaNight mode and "officially" ending it and migrating the questions into the normal questions.json.
- Fixed some bugs that surfaced in version 1.4
- Added configurable fuzzy matching.
- The bot now keeps a json file for configuration. May be manually edited, or edited using commands.
- Added some logging, changed default fuzzy threshold.
- Hotfixed some bugs.
- Made most commands available to everyone when TriviaNight mode is off.
- Added the
,unpin
command. Does what you expect.