fix(prefix): fix default prefix not working

This commit is contained in:
Romain J 2020-01-02 16:49:22 +01:00
parent c71c976111
commit 7e8f0bbf12
11 changed files with 14 additions and 21 deletions

3
bot.py
View file

@ -36,9 +36,8 @@ l_extensions: List[str] = [
async def _prefix_callable(bot, message: discord.message) -> list:
extras = [bot.cluster.get('Name')]
extras = [bot.cluster.get('Name') + '.']
if message.guild is not None:
extras = []
if str(message.guild.id) in bot.prefixes:
extras.extend(
bot.prefixes.get(str(message.guild.id), "prefixes").split(

View file

@ -37,7 +37,7 @@ deactivate () {
# unset irrelevant variables
deactivate nondestructive
VIRTUAL_ENV="/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv"
VIRTUAL_ENV="/opt/tuxbot-bot/venv"
export VIRTUAL_ENV
_OLD_VIRTUAL_PATH="$PATH"

View file

@ -8,7 +8,7 @@ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PA
# Unset irrelevant variables.
deactivate nondestructive
setenv VIRTUAL_ENV "/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv"
setenv VIRTUAL_ENV "/opt/tuxbot-bot/venv"
set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/bin:$PATH"

View file

@ -29,7 +29,7 @@ end
# unset irrelevant variables
deactivate nondestructive
set -gx VIRTUAL_ENV "/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv"
set -gx VIRTUAL_ENV "/opt/tuxbot-bot/venv"
set -gx _OLD_VIRTUAL_PATH $PATH
set -gx PATH "$VIRTUAL_ENV/bin" $PATH

View file

@ -1,10 +1,8 @@
#!/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv/bin/python
#!/opt/tuxbot-bot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

View file

@ -1,4 +1,4 @@
#!/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv/bin/python
#!/opt/tuxbot-bot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys

View file

@ -1,10 +1,8 @@
#!/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv/bin/python
#!/opt/tuxbot-bot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from import_expression.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

View file

@ -1,4 +1,4 @@
#!/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv/bin/python
#!/opt/tuxbot-bot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys

View file

@ -1,4 +1,4 @@
#!/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv/bin/python
#!/opt/tuxbot-bot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys

View file

@ -1,10 +1,8 @@
#!/home/romain/gnousEU/rm-dev01/tuxbot-bot/venv/bin/python
#!/opt/tuxbot-bot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tcp_latency.tcp_latency import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_main())

View file

@ -1,3 +1,3 @@
home = /usr/bin
include-system-site-packages = false
version = 3.8.0
version = 3.8.1