joshuajz / borg-v2.0 Goto Github PK
View Code? Open in Web Editor NEWA rewrite of my previous bot (Borg)
A rewrite of my previous bot (Borg)
Create a function to take in the user's input of a username in a command (either an ID or an actual @) and convert it into an actual user type from discord.py
Doesn't work if the photo is a link to a photo instead of an attachment, or is a tenor gif (which is essentially a link to tenor's severs)
welcome.py
welcome_handling (not an actual command)
welcome_setup {channel} {welcome message} | Allows an admin to set a message
welcome_toggle | toggles the "enabled" value
Reminder: Check for admin perms
Store the information in the database
Testing:
Add an example to each of the commands so that the user's use them properly
If you create a command and put the detonator for the command in quotation marks, it adds those quotation marks to the database.
ex: !create_command "hello" "hello"
Will be added as: "hello"
in !commands, and users will be unable to call that command.
!create_command "hello how are you" "test"
(note without the !) results in the command being uncallable and unexpected behavior when attempting to remove the command
@USER
will now list out the programs with a number beside each one.1. University of Github
2. University of A
3. University of B
Changing !programs_remove. Instead you can remove a specific program with !programs_remove 1 OR you can remove them all with !programs_remove *
Changes to the database: Descriptions will no longer be actual python lists, instead we will change to a _\n\n version.
ie.:
Program 1\nProgram 2\nProgram 3
We can then split with the \n
Fix to !programs_add, where if the user puts the first program on a newline, it doesn't work.
Though the bot could've been down for this period of time. Furthur bugtesting is needed.
Commands to all lowercase (that way you can call them -> !jZ == !jz == !JZ
ie.
!programs
!programs_add
!programs_remove
!programs_setup
-> !programs {add, remove, setup, @user} ...
Database is storing extra spaces after using !programs_edit and !programs_add a few times.
!create_command "!hello how are you" "test"
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.