mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
Update main.py
This commit is contained in:
parent
12b585c369
commit
c1af742c73
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -7,11 +7,10 @@ import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
import logscript
|
|
||||||
from functions import config_entry, get_prefix, hit_endpoint, get_server_status
|
from functions import config_entry, get_prefix, hit_endpoint, get_server_status
|
||||||
from unicode import clipboard
|
from unicode import clipboard
|
||||||
|
|
||||||
#print = logscript.logging.getLogger().critical
|
# print = logscript.logging.getLogger().critical
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
botToken = os.getenv('botToken')
|
botToken = os.getenv('botToken')
|
||||||
|
@ -90,7 +89,8 @@ async def on_message(message):
|
||||||
if role.id in bypass_roles:
|
if role.id in bypass_roles:
|
||||||
bypass = True
|
bypass = True
|
||||||
|
|
||||||
asked_for_ip = re.search("(((give *(me)?)|(wh?at'? *i?s?))( *the)?( *server)? *ip)|(ip\?)", message.content.lower())
|
asked_for_ip = re.search("(((give *(me)?)|(wh?at'? *i?s?))( *the)?( *server)? *ip)|(ip\?)",
|
||||||
|
message.content.lower())
|
||||||
if asked_for_ip is not None:
|
if asked_for_ip is not None:
|
||||||
print("THE IP IS GAY")
|
print("THE IP IS GAY")
|
||||||
em = discord.Embed(
|
em = discord.Embed(
|
||||||
|
|
Loading…
Reference in a new issue