|a b43659f495 fix uwu regex substitution and start writing crytyping cog||4 weeks ago|
|.vscode||3 months ago|
|cogs||4 weeks ago|
|pycord @ aa75ad17a7||1 month ago|
|sounds||2 months ago|
|utils||3 months ago|
|.gitignore||3 months ago|
|.gitmodules||3 months ago|
|.style.yapf||3 months ago|
|README.md||3 months ago|
|app.py||1 month ago|
|icon.jpg||3 months ago|
|icon2.png||3 months ago|
|requirements.txt||3 months ago|
CyberBus2 (codenamed Umi, currently powering Ricky#6849 on the NeoZones Discord server) is a spiritual successor to the original NeoZones CyberBus bot.
CyberBus2 is written in Python (3.10+) and makes use of the Pycord library (latest commits from the master branch, v2.0 rewrite pre-release). It is therefore considered bleeding-edge.
Within Pycord, you should be aware of the following concepts:
setup()function which can be used to prepare a Bot or Client for operation. Generally, this is used to add the external Cog to the Bot or Client.
Within Python, you should be aware of the following concepts:
asyncbefore functions, and
awaitbefore coroutines within those functions. Essentially, you should
__init__()function will initialize each instance of the Class. Because of this, it requires a
selfparameter, and consequently, all functions within that class will also require a
selfparameter. This parameter is implied, meaning it does not have to be explicitly passed into function calls; instead,
selfmust be used as a prefix in order to reference the function contained within the instance of the Class object. For example, if you write a function with
def function(self), you would call it elsewhere with
self.function()instead of with
function(self). Any additional parameters can be passed in like normal.
The main script used to run this application is found in the root of the repository at
Extensions are loaded from the
cogs/ folder. Currently, the following cogs are provided:
sounds/normalizeddirectory, and the
normalizebash script in
sounds/can be used to automatically normalize any audio files placed in
sounds/originals. This cog uses message commands.
on_raw_reaction_remove, and it also uses message commands and application commands.
:trash:when any reference to Among Us is made. This cog uses listeners for
Some utility scripts are provided to interface with the Discord REST API. These scripts can be found in the
utils/ folder. Currently, the following scripts are provided:
For use with the music cog, a
sounds/ directory is provided.
sounds/originalssubdirectory, and additional subdirectories are supported.
normalizeBash script should be used to normalize all audio within the
originalssubdirectory. This requires ffmpeg-normalize.
sounds/normalizedsubdirectory, which is where the
normalizescript will output all of its files.
git clone <url>
git submodule update --init
BOT_TOKEN = <insert your token here>
Currently, the following are hardcoded:
playtop, which can be removed or modified
roles, where a role can be of type
PRONOUN_-- this can be changed, but make sure to change the
/colorapplication command if you do so
/colorapplication command's decorator