mirror of
https://github.com/bytedream/untisbot-discord.git
synced 2025-06-27 00:10:31 +02:00
Moved commands to extra function; added timetable
, start
, stop
commands; general changes
This commit is contained in:
13
README.md
Normal file → Executable file
13
README.md
Normal file → Executable file
@ -23,15 +23,18 @@ To see all available commands and get infos about it, simply type `help`.
|
||||
|
||||
| command | usage | example | default |
|
||||
| --- | --- | --- | --- |
|
||||
| `channel` | In the channel where this command is entered, the bot shows the timetable changes | `channel` | -
|
||||
| `clear` | Clears the given untis data, given from the `data` command | `clear` | -
|
||||
| `data <username> <password> <login page url> [class name]` | Sets the data with which the bot logs in to untis and checks for timetable changes. The data is stored encrypted on the server. `username` and `password` are the normal untis login data with which one also logs in to the untis website / app. To gain the login page url you have to go to webuntis.com, type in your school and choose it. Then you will be redirected to the untis login page, The url of this page is the login page url, for example `https://example.webuntis.com/WebUntis/?school=myschool#/basic/main`. `class name` is just the name of the class you want to check (eg. `12AB`). If `class name` is not specified, the bot tries to get the default class which is assigned to the given account. | `data myname secure https://example.webuntis.com/WebUntis/?school=example#/basic/main 12AB` | - |
|
||||
| `help` | Displays help to a given command | `help data` | - |
|
||||
| `channel` | In the channel where this command is entered, the bot shows the timetable changes | `channel` | - |
|
||||
| `clear` | Clears the given untis data, given from the `data` command | `clear` | - |
|
||||
| `data <username> <password> <login page url> [class name]` | Sets the data with which the bot logs in to untis and checks for timetable changes. The data is stored encrypted on the server. `username` and `password` are the normal untis login data with which one also logs in to the untis website / app. To gain the login page url you have to go to webuntis.com, type in your school and choose it. Then you will be redirected to the untis login page, The url of this page is the login page url, for example `https://example.webuntis.com/WebUntis/?school=myschool#/basic/main`. `class name` is just the name of the class you want to check (eg. `12AB`). As `class name` you can use any class from your school. If it isn't specified, the bot tries to get the default class which is assigned to the given account. | `data myname secure https://example.webuntis.com/WebUntis/?school=example#/basic/main 12AB` | - |
|
||||
| `help [command]` | Displays help to a given command | `help data` | - |
|
||||
| `language <language>` | Changes the language in which the timetable information are displayed. Currently only `de` (german) and `en` (english) are supported | `language de` | `en` |
|
||||
| `prefix <new prefix>` | Changes the prefix with which commands are called | `prefix $` | `!untis ` |
|
||||
| `stats` | Displays a message with some stats (total cancelled lessons, etc.) | `stats` | - |
|
||||
| `start` | Starts the stopped timetable listener. Only works if data was set with the `data` command | `start` | - |
|
||||
| `stop` | Stops timetable listening. Only works if data was set with the `data` command | `stop` | - |
|
||||
| `timetable [date] [class name]` | Displays the timetable for a specific date. As `date` you can use 3 formats. 1: Only the day (`12`); 2. Day and month (`13.04`); 3. Day, month and year (`31.12.2020`). Only works if data was set with the `data` command. If no date is given, the timetable for the current date is displayed. As `class name` you can use any class from your school. If class is not given, the class which was assigned in the `data` command is used | `timetable 11.11` | - |
|
||||
|
||||
Note: All commands except for `help <command>` and `<stats>` can only be executed by a member with admin rights.
|
||||
Note: All commands except for `help [command]`, `timetable [] [class]` and `<stats>` can only be executed by a member with admin rights.
|
||||
|
||||
## Self-hosting
|
||||
|
||||
|
Reference in New Issue
Block a user