Add separate text/markdown reply mode, add help, fix some commands

This commit is contained in:
2023-11-18 01:27:42 +01:00
parent aeb981629e
commit 88d33da92c
11 changed files with 95 additions and 79 deletions

38
LibWinDog/Config.py Normal file → Executable file
View File

@@ -6,11 +6,11 @@
MastodonUrl = ''
MastodonToken = ''
TGID = 1637713483
TGToken = ''
TGAdmins = [ 123456789, ]
TGWhitelist = [ 123456789, ]
TGRestrict = False
TelegramId = 1637713483
TelegramToken = ''
TelegramAdmins = [ 123456789, ]
TelegramWhitelist = [ 123456789, ]
TelegramRestrict = False
DefaultLang = 'en'
Debug = False
@@ -19,3 +19,31 @@ CmdPrefixes = '.!/'
# False: ASCII output; True: ANSI Output (must be escaped)
ExecAllowed = {'date': False, 'fortune': False, 'neofetch': True, 'uptime': False}
WebUserAgent = f'WinDog v.Staging'
Endpoints = {
"start": cStart,
"help": cHelp,
#"config": cConfig,
"source": cSource,
"ping": cPing,
"echo": cEcho,
#"repeat": cRepeat,
"wish": percenter,
"level": percenter,
#"hug": multifun,
#"pat": multifun,
#"poke": multifun,
#"cuddle": multifun,
#"floor": multifun,
#"hands": multifun,
#"sessocto": multifun,
"hash": cHash,
"eval": cEval,
"exec": cExec,
#"format": cFormat,
#"frame": cFrame,
"web": cWeb,
"translate": cTranslate,
"unsplash": cUnsplash,
"safebooru": cSafebooru,
}