The project is under development
Attention, the framework is only in French
discord_akerno makes it easy for your robots to separate commands by file and move them by folder according to their category
- Creating commands from the file.
- Creating your own categories.
- Command aliases.
- Client and user permission checks.
- Client and user events.
- On a word
- User
- For a user by ID
- For a user by name
- Guild
- For a guild by ID
- For a guild by name
- Channel
- For a channel by ID
- For a channel by name
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
prefix = "!"
bot = commands.Bot(command_prefix=prefix, intents=intents)
bot.remove_command('help')
@bot.event
async def on_ready():
print("Bot is ready !")
@bot.command()
async def help(ctx):
embed = discord.Embed(title="Liste des commandes", color=0x00ff00)
embed.add_field(name="!ban", value="Bannir un utilisateur", inline=False)
await ctx.send(embed=embed)
@bot.command()
@commands.has_permissions(ban_members=True)
async def ban(ctx, member: discord.Member, *, reason=None):
await member.ban(reason=reason)
await ctx.send(f"{member.mention} a été banni")
bot.run('token')
import discord
from discord.ext import commands
from discord_akerno import AkernoClient
prefix = "!"
bot = commands.Bot(command_prefix=prefix)
bot.remove_command('help')
AkernoClient(bot, 'event')
bot.run('token')
MySuperBot
├── akerno.commands.json
├── akerno.dirs.json
├── akerno.inhibitors.json
├── bot.py
├── discord_akerno.create.py
├── discord_akerno.py
├── command
│ ├── fun
│ │ ├── coucou.py
│ │ └── dm.py
│ ├── moderation
│ │ ├── ban.py
│ │ ├── clear.py
│ │ ├── kick.py
│ │ └── purge.py
│ └── utility
│ ├── botinfo.py
│ ├── help.py
│ ├── ping.py
│ └── say.py
└── event
├── client
│ └── on_ready.py
└── command
└── commandNotFound.py
- Download Python (I recommend a recent version of Python)
- Download all files
- Put them in a common folder
- Put your bot
- Don't forget to import the discord_akerno framework
- Put the line to connect the bot to the framework
AkernoClient(bot)
- You're done !
- Open the file discord_akerno.create.command.py
- Fill in the options
- Then run the file
- Open the file discord_akerno.create.event.py
- Fill in the options
- Then run the file
Made with ❤️ by Artic