tigressine / lion Goto Github PK
View Code? Open in Web Editor NEWA simple, modular Discord bot from scratch
A simple, modular Discord bot from scratch
Probably should compile the files first though. Move all files into /opt. Exact tree structure is defined on paper.
Use pattern matching, regex or wildcards for the !register command. so for example doing !register malware_*
will register you for all Malware classes.
Not sure if all commands are case sensitive, did !EGG by accident, got sent to menu.
This removes the requirement that token files end with a newline
!users command can have a minor upgrade to show online user count.
Format could be something like:
UCF Comp Sci has {} members ({} currently online).
Back-end console to run administrative commands discretely. Good for configuring lots of channels at once.
The hard coded font file constant in sponge.py is very machine specific which makes it more difficult for others to clone and run the code locally.
Also when we deploy this to a server this will have to be explicitly setup in the deployment configuration.
Going forward we should replace this specific file with a more generic font (not a specific file path) if possible or at least have a fallback font.
!register
!listcourses
--> display all classes available with course code and then professor
All other classes will be hidden! Greatly improves left side lists.
Add support for aliasing of commands. Most notably, !garages
should also work as well as !garage
.
Possibly also log all actions
When a user types (for example) !register all
in a channel that is not #bot_spam
, lion should send either a DM to the user or message to the channel stating something along the lines of:
Hey! This command is not supported within this channel. Please utilize this command within #bot_spam
Make plugins perfectly drag and drop
Add error handling
Kind of like #57 but specifically no down-time for new plugins or changes to any running plugins.
secret feature, reminder to myself
Some command that is able to transcribe text from images if needed, possibly into other languages as well. this might be a good library to use, as I use the node version for my own discord bot: https://pypi.org/project/pytesseract/
Currently we host token credentials in separate files for each which can definitely be improved on. Switching to a singular .env
file seems to be a better design for whenever we expand to use other services that require API keys / other private information. One file to add to .gitignore
and never have to think about it again when adding other keys.
Documentation on python-dotenv package:
https://github.com/theskumar/python-dotenv
At the moment, I believe the bot simply adds the permissions for every single channel to a user when they specify !register all
, but when a user registers like this, they want to see all the channels on the discord server. This includes new classes that are added in the future.
I propose a feature that enables users that specify !register all
to see all classes in perpetuity. I don't know all of the capabilities of discord server management or this bot, but would this be possible?
I commonly see people have problems with trying to do !poll (option1,option2) but only !poll (option1, option2) works
Commands are currently not being recognized as commands unless they are typed in all lowercase.
Delete original command and ping the user from bot spam.
Potential commands include addroles, removeroles, listroles, weather, garage, help, info, user count.
Leave dog, egg, poll, and sponge to execute in the same chat that they were requested in.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.