- Go on this site and create new app,
- Go to OAuth2 tab select Authorization method as
In-app Authorization
, Scopes and Bot Permissions set like on the screenshot below:
- Now go to URL Generator tab and select same as before, then copy the URL. You will use this URL to invite this bot on your server, so save it somewhere.
- Then go to Bot tab and select
PRESENCE INTENT
,SERVER MEMBERS INTENT
andMESSAGE CONTENT INTENT
- After that, in the same tab click Reset Token button and copy new generated token.
WARNING: REMEMBER TO DO NOT SHARE THIS TOKEN - Create
config.json
file that will contain your bot token:{ "token": "your_bot_token" }
$ git clone https://github.com/MaciejKarasek/DiscordCalendar.git
- Put your
config.json
file into.../DiscordCalendar/
directory
Linux:
$ sudo apt-get install python3.11
Windows: Download Python from official Python site.
Go to .../DiscordCalendar directory and run this command:
.../DiscordCalendar$ pip install -r requirements.txt
.../DiscordCalendar$ python3 main.py
-help
- Shows you all comands and their usage
<-add / -a> <Task info> <arguments>
Arguments:
-td
- Adds TODO status to your task
-time
- Adds deadline / reminder to your task, by default its tommorrow at 00:00, but You can change this by adding date in format YYYY.MM.DD
/ DD.MM.YYYY
and hour(optional) in format HH:MM
Example: -a "Task one" -td -time 2023.3.1 14:00
- Creates task with info "Task one", TODO status and deadline / reminder 2023.03.01 at 14:00.
-show
Arguments:
-s
- shows all tasks in compact version.
-status <scope> <TODO / InProg / DONE / None>
Scope:
Use Task_ID
of exact task or all
to change status of all tasks
Arguments:
TODO
- TODO ⭕️
InProg
- In Progress ⏳
DONE
- DONE ✅
None
- No status
<-remove / -r> <scope>
o
Scope:
Task_ID
- remove specific task,
all
or -a
to remove your all tasks,
done
or -d
to remove all your DONE tasks,
old
or -o
to remove all your out of date tasks\
To create, show, change status and remove private tasks use double prefix --
Example: --help
- Sends you private message with bot instructions'