packetfire / apophis Goto Github PK
View Code? Open in Web Editor NEWPython Discord Bot
Python Discord Bot
!qdb
- quote database command
Implement pagination for music list with limit of 10 results.
Delete a song from a table and its corresponding audio file if it exists.
Quart
For some of our configuration, we do something like the following:
bot_token = os.environ.get('BOT_TOKEN', config['bot_token'])
This throws an exception if bot_token
isn't defined in the dictionary. We should rewrite these to only check config
if the environmental variable isn't defined.
add separate file for list of emoji definitions
Define a configuration helper that can pull configuration values from environmental variables or files.
Currently, README.md
lacks details about installation, configuration, running, and limitations of the project.
It would be nice to have a updated README.md
detailing those steps.
shorten command to communicate with pfurl.me for shortened urls
Songs are being saved as mp3 files, so the bot is having to transcode from mp3 to opus on the fly. If we transcode to opus on download, we can avoid that expensive step during playback.
!theo - output random theo de raadt quotes
!qdb - quote database
!define - urban dictionary
Play any random song. can be separate from shuffling
This command will be used to organize our songs and relay them to rythm bot.
Acceptance criteria:
!uptime
command, it should print the amount of time it has been up.Acceptance criteria:
queue
or qlucky
commandIt might be a good idea to make this a command with multiple subcommands.
!define
- urban dictionary definitions command
Need to setup a permissions module for user access.
Access levels
owner - ability to access all commands
admin - access admin level only commands
normal - all other normal commands for normal users
Acceptance criteria:
Acceptance criteria:
Should the bot ever implicitly reshuffle?
Acceptance criteria:
content
, author
, server
, channel
, time
(both Discord time and receive time could be good)Should edits and deletions be tracked?
any other alternatives?
Acceptance criteria:
!theo
- output random theo de raadt quotes
Acceptance criteria:
In both the songs
and permissions
tables, we are identifying a Discord user via their username. This can potentially fail in distinguishing two users: it is entirely possible that two Discord users share the same username (remember not pacifico?). It is also insufficient to use both the username and the user number, both these values can be changed at the discretion of a user.
The only field that distinguishes any two users is their Discord user ID, which is accessible in discord.py
via message.author.id
. It looks something like 327973168934463462
. It is a very large number, but its also safe for us to save this as a string in postgres.
We should use the Discord user ID instead of the username/number to identify users.
should let us deploy apophis by running it alongside a pg container
Loading PCM-encoded audio streams gives us the ability to manipulate volume on the fly
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.