Update main.py

This commit is contained in:
Elmon11 2021-03-30 01:19:41 +02:00 committed by GitHub
parent 12b585c369
commit c1af742c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,11 +7,10 @@ import discord
from discord.ext import commands
from dotenv import load_dotenv
import logscript
from functions import config_entry, get_prefix, hit_endpoint, get_server_status
from unicode import clipboard
#print = logscript.logging.getLogger().critical
# print = logscript.logging.getLogger().critical
load_dotenv()
botToken = os.getenv('botToken')
@ -90,7 +89,8 @@ async def on_message(message):
if role.id in bypass_roles:
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:
print("THE IP IS GAY")
em = discord.Embed(