Implement och command to timeout anyone

This commit is contained in:
2021-01-18 22:51:00 +01:00
parent 4cb20aa771
commit 103e1fa354
3 changed files with 84 additions and 19 deletions

View File

@@ -4,9 +4,10 @@ from typing import Optional
CONFIG = 'config.json'
config: dict = {
'inf19x-insiders-enable': False,
'loeh-cooldown': 20,
'loeh-enable': False,
'loeh-timeout': 10,
'och-timeout': 10,
'och-cooldown': 20,
'och-anyone-enable': False,
'prefix': 'och!',
}
config_meta: dict = {
@@ -14,17 +15,21 @@ config_meta: dict = {
True,
'Enables university insider jokes of INF19X'
),
'loeh-cooldown': (
True,
'Number of seconds between timeouts'
),
'loeh-enable': (
True,
'Enable time-outing Löh'
),
'loeh-timeout': (
'och-timeout': (
True,
'The timeout for Löh in seconds'
'The timeout for all och actions in seconds'
),
'och-cooldown': (
True,
'Number of seconds between timeouts'
),
'och-anyone-enable': (
True,
'Enable och-ing anyone'
),
'prefix': (
False,