• Introduction
• Screenshots
• Setup
• License
This was the first version of the calculator, made for my discord bot, Polsu using discord-components.
If you want to try the calculator or need help, join the support server
Please don't change the footer text of the embeds.
Don't forget to give a star if you like it :)
Step 1: Install libraires:
Install Discord-Components
pip install --upgrade discord-components
Install TagScriptEngine
pip install TagScriptEngine
Step 2: Choose if you want between the Main.py or the Cog.py
• For the Main.py File, you need to add your Discord Bot Token (which you can find HERE), to the last line:
client.run("TOKEN")
• For the Cog.py, you just need to add the file to your Bot's Cogs File. You will also have to add this line to your on_ready
event: DiscordComponents(client)
, example:
@client.event
async def on_ready():
DiscordComponents(client)
and of course, don't forget to import discord_components in your main file: from discord_components import DiscordComponents
!
• Error:
If you get: 'Interaction Failed'
Make sure to have client = commands.Bot(command_prefix = "&", intents=discord.Intents.all())
(intents=discord.Intents.all())
in your main.py file!
Got another error ?
Join the support server
This project is under the MIT License.