Going back to the old way of reading files

Copying text files to test if it works
testing
sgoudham 5 years ago
parent a8b05759a7
commit bfd8261abd

@ -47,7 +47,7 @@ async def roles(ctx):
icon_url="https://cdn.discordapp.com/attachments/689525645734182916/717137453651066900" icon_url="https://cdn.discordapp.com/attachments/689525645734182916/717137453651066900"
"/Rias_Gremory.png") "/Rias_Gremory.png")
embed.set_footer( embed.set_footer(
text="-------------------------------------------------------------------------------------------------------") text="---------------------------------------------------------------------------------")
embed.add_field(name="Cooldown", value="**•XP is gained every time you talk with a 2 minute cooldown.**", embed.add_field(name="Cooldown", value="**•XP is gained every time you talk with a 2 minute cooldown.**",
inline=True), inline=True),

@ -1,6 +1,6 @@
import asyncio import asyncio
import pathlib
import random import random
import discord import discord
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import BucketType, cooldown from discord.ext.commands import BucketType, cooldown
@ -95,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:

@ -1,5 +1,4 @@
import asyncio import asyncio
import pathlib
import random import random
import discord import discord
@ -18,8 +17,8 @@ class Waifus(commands.Cog):
channels = ["bot-commands"] channels = ["bot-commands"]
path = pathlib.Path(r'C:\Users\sgoud\PycharmProjects\EnsoBot\txtfiles\kakashiImages.txt') # path = pathlib.Path(r'C:\Users\sgoud\PycharmProjects\EnsoBot\txtfiles\kakashiImages.txt')
with open(path, mode='r') as file: with open('kakashiImages.txt') as file:
kakashi_array = file.readlines() kakashi_array = file.readlines()
if str(ctx.channel) in channels: if str(ctx.channel) in channels:
@ -49,8 +48,8 @@ class Waifus(commands.Cog):
channels = ["bot-commands"] channels = ["bot-commands"]
path = pathlib.Path(r'C:\Users\sgoud\PycharmProjects\EnsoBot\txtfiles\togaImages.txt') # path = pathlib.Path(r'C:\Users\sgoud\PycharmProjects\EnsoBot\txtfiles\togaImages.txt')
with open(path, mode='r') as file: with open('togaImages.txt') as file:
toga_array = file.readlines() toga_array = file.readlines()
if str(ctx.channel) in channels: if str(ctx.channel) in channels:

@ -0,0 +1,53 @@
"Hamothy is preoccupied with catching a case"
“The prophet Kate believes it will come true”
“Josh doesn't believe in the outcome :(“
“Izzy can't predict this"
“Idk idiot lmao“
“Why are you even asking me“
“It's not like I can read your question“
“Zara wants to protest your question“
“Stitch will definitely get back to you“
“*Kakashi slams you to the wall*“
“Kate is too busy reading yaoi to answer your question“
“It- It's not lik- It's not like I want to answer your question or anything *tsundere noises*“
“Connor is too busy making tea and simping for beautiful women to reply to this“
“Maybe“
“Who said you could ask that question?“
“Ifrah cannot answer that“
“Hussein be spitting too much fire to look at your weak ass question“
“Literally no one gives a shit“
“N O spells NO“
“Find something better to do with your spare time smh“
“Sure but did you know that Izzy smells?“
“No but did you know that Stitch smells?“
“Get back to horny jail RIGHT NOW“
“Nick Cock Bro“
“Nice Tits“
“No“
“Yes"
“Pffft you wish“
“Never in a million years“
“You're wasting your time asking me“
“Taz is too busy doing ahegao faces on tiktok to care“
“Leave me alone. I'm sad :(“
“Shoot your Shot King“
“Of course!“
“If you believe hard enough it'll come true!!“
“Inna likes this question but you'll have to answer it yourself ╮(︶▽︶)╭“
“Dm Taz to truly find out the answer to this one“
“Hussein approves of these FIRE bars“
“Why you gotta ask me a question when I'm just vibin bro :pensive: “
“Hamothy LOVES this question and nods approvingly“
“I don't have the energy to answer this question...“
“The Swedish fish agrees“
“You're better off asking Dyno Ensō is in a bad mood right now :(“
“The answer lies within your heart“
“All the signs point to yes!“
“Marshall would love to agree with you“
“That's so litty titty bro“
“I'm Izzy and I approve of this message“
“Inna would love to agree with you“
“Hamothy has used his godlike like powers to align the stars for you it must be true“
“Gabriel appears out of thin air and smites you“
“Yes yes yes!!!“
"niKki sAys gO gEts tHeM HorSie"

@ -0,0 +1,100 @@
https://cdn.discordapp.com/attachments/714671068941647933/717201077346238514/image0.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717201077669331036/image1.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717201077941829722/image2.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717201078633889913/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717201078885810176/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717203540048871456/40964a8ec3616dd143db1ac63c4090ee.jpg
https://media.discordapp.net/attachments/714671068941647933/717203546772340846/4707601f950c412dd6978c8264308632.jpg
https://media.discordapp.net/attachments/714671068941647933/717203597774946354/7941b52067df70825ae3a9051acfd98d.jpg
https://media.discordapp.net/attachments/714671068941647933/717203650333900840/dafb0bc78adc3548e9c9b24460d7c10d.jpg
https://media.discordapp.net/attachments/714671068941647933/717203693925040188/aad4edeac8e034683b5602cf01a41333.jpg?width=465&height=658
https://media.discordapp.net/attachments/714671068941647933/717203717085986836/5851485577679be2a09bdebef7e35522.jpg?width=390&height=658
https://media.discordapp.net/attachments/714671068941647933/717203783016513626/e2a746123c1e36d995fa95c44a3c3f85.jpg
https://media.discordapp.net/attachments/714671068941647933/717203811923394611/268a3266d4c255b72925a3eb541f4cf5.jpg?width=517&height=657
https://media.discordapp.net/attachments/714671068941647933/717203866986479636/b283f71be006957107926e1d5d9ab60e.jpg?width=591&height=658
https://cdn.discordapp.com/attachments/714671068941647933/717203972925947984/6f46bb96761b673f1c4f4b5584bf1ba8.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204020711915581/4025c1241a206406555bd6ab53640291.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204198491422770/94287174f2f5e5316144981190a38c66.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204289755283547/a9868fb38857dd51ccc93a3e202644ff.gif
https://cdn.discordapp.com/attachments/714671068941647933/717204351638175784/3967dabc9b069080daded9a38f1d9e49.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204405178597396/3d063a07af0cfa320a100e169c959ff4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204454264537151/4c607bbcc9a360257e1d14b5c9858b21.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204495939141692/9d85777e4a452f2f38464f8a11dece5b.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204530760122478/edeaa333ed2fb68aa1205a783d0bb783.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204561936252958/4f39f6de439a99b4113f6a33fd803079.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204627484967012/ebb8b6713aff32745503d6cbe8996569.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204713648685126/a6cb9a07745c163d14d736e077765ec8.gif
https://cdn.discordapp.com/attachments/714671068941647933/717204734905417738/3a081283ef670fd5326a694b7d41d35d.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717204879155921006/864704a29ef1201f78f7f8fd71f57cf7.gif
https://cdn.discordapp.com/attachments/714671068941647933/717204999792361472/d9b273a711ccf1e6af531443a4cf06b5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717205121259405332/d2426eff482c18af2586e1fd2499d3d5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717205186463924224/7e27f5a97a80444ab5fc773e4d09d1bb.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717205371835514930/IMG_20191212_215715_438.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717205515519655976/df09731e2b38c1f50cc57f4600d937f5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206154882842695/image0.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206155356798986/image1.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206155562057780/image2.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206155797200896/image3.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206156031819786/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206156191334460/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206156673679380/image6.gif
https://cdn.discordapp.com/attachments/714671068941647933/717206157227327578/image7.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206621121544230/image0.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206621310418954/image1.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206621666672721/image2.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206621993959474/image3.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206622249943050/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206622489018458/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717206622979489792/image6.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717545579713921065/image0.gif
https://cdn.discordapp.com/attachments/714671068941647933/717545580070699068/image1.gif
https://cdn.discordapp.com/attachments/714671068941647933/717545580393398332/image2.gif
https://cdn.discordapp.com/attachments/714671068941647933/717545580804702228/image3.gif
https://cdn.discordapp.com/attachments/714671068941647933/717545581299499179/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717545581526122586/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717545581815529532/image6.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717545582046085140/image7.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717545582234697748/image8.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717545582427766784/image9.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547623334019102/image0.gif
https://cdn.discordapp.com/attachments/714671068941647933/717547623762100254/image1.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547624122810388/image2.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547624374206554/image3.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547624655355944/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547624906883082/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547625095626752/image6.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547625557262417/image7.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717547625762521167/image8.gif
https://cdn.discordapp.com/attachments/714671068941647933/717547626081288242/image9.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548032249430016/image0.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548032614465556/image1.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548033000079380/image2.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548033344143410/image3.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548033612709999/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548033868300298/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548034149449738/image6.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548034359296046/image7.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548034631663616/image8.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717548034820538406/image9.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551546946158602/image0.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551547197947954/image1.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551547525103616/image2.gif
https://cdn.discordapp.com/attachments/714671068941647933/717551547776630824/image3.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551548170764398/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551548380610570/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551548720349235/image6.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551549139648592/image7.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551549357883512/image8.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551549525786745/image9.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551728316121148/image0.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551728873963610/image1.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551729343725568/image2.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551729343725568/image2.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551729683595334/image3.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551730065276948/image4.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551730400821298/image5.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551731537477662/image6.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551731969622039/image7.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551732338458654/image8.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717551732594442290/image9.jpg
https://cdn.discordapp.com/attachments/714671068941647933/717552058877739119/image0.gif

@ -0,0 +1,50 @@
https://cdn.discordapp.com/attachments/714213422333558804/717916377368756275/FB_IMG_1590335785815.jpg
https://cdn.discordapp.com/attachments/714213422333558804/717916377733922826/FB_IMG_1590335906532.jpg
https://cdn.discordapp.com/attachments/714213422333558804/717916377993969704/FB_IMG_1590335791939.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718138658632368178/ddc257f2d978102039c2e97158fea28c.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718138658833563739/c48b4b6a24ef3465132b5bf975507cb3.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718138659022438410/ee978ebc5eefb32e61a9a38ea46ac26c.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152752785522828/IMG_20200604_203446.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152753175592970/IMG_20200604_203623.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152753574314094/0668fbfb49fea27e2fa4c5c569f46c54.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152753905402007/3d45c833b0957274868de09f4d5e5d26.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152754329288784/74accad3f540c30c6d7aca1f2e923080.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152754765365428/49f770b17089020db13ee82560191446.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152781927677972/rUhBeflm4_c.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152782246314064/PsozWICZ_es.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152782535852047/mTSNj8dISW4.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152783005483068/fb-MMwcpGJI.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152783429238935/wKSqKp_2PjY.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152783659794582/oXf5A6pV-QA.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152783940943922/nYkcak87bIU.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152816878813204/IMG_20200604_210206.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152817164156990/sJCRfF4rwTA.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152817436655626/sgdI-EXoptI.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152817831051361/0CXfkuqvRQE.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152818116264038/A460ETbOcw0.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152818464129055/Ls5mO51v6qc.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152818674106378/uUWA1hKdAFc.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152819059720252/b1JXtYLxN8M.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152819059720252/b1JXtYLxN8M.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152915763855520/8TZLtMlB43Q.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152916057325579/IMG_20200604_211234.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152916401389568/iKvBSzuAOYA.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152916808106014/eKDjAGLDLU.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152917231861800/-FnTXTQwc1E.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152917445509210/6SrfK8JqZWI.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152950320726096/f5zIXjyLRXY.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152950878568559/rR9Xw-BuomA.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152951100604416/r7NVOK6N9vQ.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152951411114104/R0NqYr8daDY.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152951838933082/ALu8cvMjU.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152952241455184/Dpig9P4URXw.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152952665342042/0XxFWT5WcRw.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152953097224283/ddYoOsWNCgo.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152953378373665/WnctzJoXFLY.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152990590238760/3zPp9RBcIlE.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152990921326672/qzuZVVlT1c8.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152991131172894/tepluGRm-P8.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152991357534248/VBKNfIEQfgM.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152991625969684/6iPRWL0Xj_0.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152992028622868/JqiASWK92hA.jpg
https://cdn.discordapp.com/attachments/716823227409760337/718152992322355279/PmzsE9RH9iQ.jpg
Loading…
Cancel
Save