mirror of
https://github.com/jeantoulza/scplanner-discord
synced 2024-12-27 09:37:22 +01:00
d442132caa
Update bot.py |
||
---|---|---|
.gitignore | ||
bot.py | ||
config.ini.example | ||
README.md | ||
requirements.txt |
SCPlanner Discord bot
SCPlanner Discord bot is a Discord bot designed to make reposts easier and faster by using Discord.
Commands
!repost <track-link>
: autoschedule a track and replies with the calendar link.
Installation
- Clone this repo.
- Configure
config.ini.example
to your needs, then rename it toconfig.ini
. - Run
pip install -r requirements.txt
. - Run
python bot.py
.
Configuration
cookie_name
: This is the session cookie name. Do not change it to anything else thanci_session
at the moment.cookie_value
: Your session cookie value. Log in on SCPlanner with your repost account and open up your browser developer view, then grab theci_session
cookie value.bot_token
: Get yours on Discord developers portal.reposters_role
: Only members of this role on your server will be able to use the!repost
command.use_all_accounts
: If set tono
(default), the bot will use account preferences to schedule your repost. If set toyes
, the bot will use all subs to schedule the repost.
Invite on your server
- Go to your app details on Discord developers portal.
- Hit the
Generate OAuth2 URL
button. - Copy the link with the default settings.
- Paste it in your browser, then proceed to add the bot on your server.