This bot is designed to interact with members of a Discord server. It adds an experience (EXP) system that awards points for sending messages in chat and joining voice channels. Users can check their experience points using the /rank command. The bot also includes commands for configuration and role management.
sl.help- Displays help information about the bot's commands.
sl.set_channel- Set up a channel for level-up messages.sl.set_exp_range- Configure the experience gain range. (Admins only.)
sl.edit_rank- Modify a user's level and experience, update linked roles.sl.set_roles- Assign roles that are granted upon reaching a certain level.sl.show_roles- Display a table of roles and levels.
sl.leaderboard- Shows the leaderboard based on EXP.
This bot uses the following libraries:
disnakedotenvosjsonrandomtime
Install the required packages using pip:
pip install -r requirements.txtCreate a .env file in the root directory of the project and add your Discord token:
DISCORD_TOKEN=your_token_hereRun the bot using the following command:
python main.pyIf you have ideas for improving the bot, feel free to create a pull request or issue in the repository!
This project is licensed under the MIT License.
Данный бот предназначен для работы с участниками Discord-сервера. Он добавляет систему опыта (EXP), которая начисляется за отправку сообщений в чат и заход в голосовые каналы. Полученные очки опыта можно посмотреть с помощью команды /rank. Также предусмотрены команды для настройки бота и управления ролями.
sl.help- Выводит справочную информацию о командах бота.
sl.set_channel- Настроить канал для отправки сообщений о достижении уровня.sl.set_exp_range- Настроить диапазон получения опыта. (Только для администраторов.)
sl.edit_rank- Изменить уровень и опыт пользователя, обновить привязанные роли.sl.set_roles- Привязать роли, выдаваемые при достижении уровня.sl.show_roles- Показать список ролей и уровней в виде таблицы.
sl.leaderboard- Показывает таблицу лидеров по EXP.
Бот использует следующие библиотеки:
disnakedotenvosjsonrandomtime
Установите необходимые пакеты с помощью pip:
pip install -r requirements.txtСоздайте файл .env в корневой папке проекта и добавьте ваш Discord-токен:
DISCORD_TOKEN=your_token_hereЗапустите бота с помощью следующей команды:
python main.pyЕсли у вас есть идеи для улучшения бота, создайте pull request или issue в репозитории!
Этот проект распространяется под лицензией MIT.