|
|
@ -1,5 +1,4 @@
|
|
|
|
import asyncio
|
|
|
|
import asyncio
|
|
|
|
import pathlib
|
|
|
|
|
|
|
|
import random
|
|
|
|
import random
|
|
|
|
|
|
|
|
|
|
|
|
import discord
|
|
|
|
import discord
|
|
|
@ -96,8 +95,8 @@ class Fun(commands.Cog):
|
|
|
|
|
|
|
|
|
|
|
|
channels = ["bot-commands"]
|
|
|
|
channels = ["bot-commands"]
|
|
|
|
|
|
|
|
|
|
|
|
path = pathlib.Path(r'C:/Users/sgoud/PycharmProjects/EnsoBot/txtfiles/eightball.txt')
|
|
|
|
# path = pathlib.Path(r'C:/Users/sgoud/PycharmProjects/EnsoBot/txtfiles/eightball.txt')
|
|
|
|
with open(path) as file:
|
|
|
|
with open('eightball.txt') as file:
|
|
|
|
_8ball_array = file.readlines()
|
|
|
|
_8ball_array = file.readlines()
|
|
|
|
|
|
|
|
|
|
|
|
if str(ctx.channel) in channels:
|
|
|
|
if str(ctx.channel) in channels:
|
|
|
@ -111,8 +110,6 @@ class Fun(commands.Cog):
|
|
|
|
# Delete the message
|
|
|
|
# Delete the message
|
|
|
|
await message.delete()
|
|
|
|
await message.delete()
|
|
|
|
|
|
|
|
|
|
|
|
file.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def error_function():
|
|
|
|
def error_function():
|
|
|
|
return "Sorry! I only work in #bot-commands!"
|
|
|
|
return "Sorry! I only work in #bot-commands!"
|
|
|
|