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,7 +7,6 @@ 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
@ -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(