SkillAgentSearch skills...

BasicBot

It's an basic scalable Discord Bot made in Python

Install / Use

/learn @LordFitoi/BasicBot
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

BasicBot:

It's a basic scalable Discord Bot made in Python & Discord.py. It contain a simple embed content load and a scalable command system.

How to use:

Just add the bot token in config.json and run the main file. If you want to add a new command, just go to CommandsMixin in mixin, then add a new fuction with the same structure to the others and finally add the command key name to the dictionary called "method" in Client, now you can use your own command in discord.

To make your own embed, you only need to clone the template.json file and add the content. If you want to use an embed that you made, you only need to call the load_embed method from the bot, and pass the name of your .json file as an argument and pass the output of the last method to the function create_embed and now you've done an discord embed, try to send it in a channel like your in your own server.

Embed Testing:

<img src = "https://media.discordapp.net/attachments/810336186010697748/832304526697955328/unknown.png">

Method List:

ViewsMixin

def load_embed(jsonfile_name : str) -> dict:
    pass # Load embed content from the 'assets/embeds' path

def create_embed(embed_content : dict) -> object:
    pass # Create an embed object from the embed content

UtilsMixin

def is_DMChannel(message : str) -> bool:
    pass # Returns True if the message comes from a private channel

def is_Command(message : str) -> str, list:
    pass # Returns Command & Arguments if the message start with Command Prefix

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks2

Languages

Python

Security Score

70/100

Audited on Apr 2, 2024

No findings