From 047b059179da60a9bc5e3326522303594dde9dfd Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 7 Jun 2020 01:42:53 +0100 Subject: [PATCH] Trying to link subdirectories in heroku --- cogs/WaifuImages.py | 5 +- images/togaImages.txt | 176 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 178 insertions(+), 3 deletions(-) create mode 100644 images/togaImages.txt diff --git a/cogs/WaifuImages.py b/cogs/WaifuImages.py index 8a8c4ecf..78908452 100644 --- a/cogs/WaifuImages.py +++ b/cogs/WaifuImages.py @@ -1,7 +1,6 @@ import asyncio import datetime import random -from pathlib import PureWindowsPath import discord from discord.ext import commands @@ -59,8 +58,8 @@ class Waifus(commands.Cog): async def toga(self, ctx): try: - path = PureWindowsPath(r'C:\Users\sgoud\PycharmProjects\EnsoBot\images\togaImages.txt') - with open(str(path)) as file: + # path = PureWindowsPath(r'C:\Users\sgoud\PycharmProjects\EnsoBot\images\togaImages.txt') + with open('images/togaImages.txt') as file: toga_array = file.readlines() if str(ctx.channel) in channels: diff --git a/images/togaImages.txt b/images/togaImages.txt new file mode 100644 index 00000000..8c8b8ff7 --- /dev/null +++ b/images/togaImages.txt @@ -0,0 +1,176 @@ +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 +https://cdn.discordapp.com/attachments/714213422333558804/717916378383908955/FB_IMG_1590335936075.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916380422471680/FB_IMG_1590336011627.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916380774793266/FB_IMG_1590336044283.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916381001154570/FB_IMG_1590336069205.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916381244424193/FB_IMG_1590336082298.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916381474979900/FB_IMG_1590336118662.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916381668048896/FB_IMG_1590336125699.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916826859864175/FB_IMG_1590336133626.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916827048738836/FB_IMG_1590336139140.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916827266580520/FB_IMG_1590336156296.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916827476295741/FB_IMG_1590336172994.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916827640004669/FB_IMG_1590336180946.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916827908309022/FB_IMG_1590336186577.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916828088664064/FB_IMG_1590336235569.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916828277669908/FB_IMG_1590336264452.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916828466151514/FB_IMG_1590336279400.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717916828617277491/FB_IMG_1590336301550.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917100882002060/FB_IMG_1590336307480.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917101431586886/FB_IMG_1590336317067.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917101758873620/FB_IMG_1590336326558.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917101985103902/FB_IMG_1590336357441.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917102413185034/FB_IMG_1590336366627.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917102685814866/FB_IMG_1590336375380.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917103067234324/FB_IMG_1590336415474.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917103293726720/FB_IMG_1590336430572.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917103511961600/FB_IMG_1590336461392.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917103772139592/FB_IMG_1590336471511.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917203487522866/FB_IMG_1590336497792.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917203730530344/FB_IMG_1590336503184.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917204099891207/FB_IMG_1590336510502.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917204401750057/FB_IMG_1590336515030.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917204603207730/FB_IMG_1590336566406.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917204921712740/FB_IMG_1590336585082.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917205207187497/FB_IMG_1590336604997.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917205496332308/FB_IMG_1590336610573.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917205823619072/FB_IMG_1590336636459.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917206104637490/FB_IMG_1590336659275.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917437420634192/FB_IMG_1590336690378.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917437680549969/FB_IMG_1590336697325.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917437860904980/FB_IMG_1590336716122.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917438070620182/FB_IMG_1590336722200.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917438322278460/FB_IMG_1590336733525.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917438506827806/FB_IMG_1590336832679.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917438821531648/FB_IMG_1590336839694.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917439400345610/FB_IMG_1590336850762.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917439706529822/FB_IMG_1590336856177.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917439903399956/FB_IMG_1590336893107.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917572670160926/FB_IMG_1590336907922.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917572825088081/FB_IMG_1590336944048.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917573039128618/FB_IMG_1590336955143.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917573500633118/FB_IMG_1590336961720.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917573710348308/FB_IMG_1590336981184.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917573962006538/FB_IMG_1590336995832.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917574159138851/FB_IMG_1590337006568.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917574381174824/FB_IMG_1590337019917.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917574616186950/FB_IMG_1590337073121.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917574855131227/FB_IMG_1590337077724.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917668820254770/FB_IMG_1590337105254.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917669180964904/FB_IMG_1590337114792.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917669583486986/FB_IMG_1590337130762.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917669839470732/FB_IMG_1590337151060.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917670254837851/FB_IMG_1590337159413.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917670653165688/FB_IMG_1590337168567.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917671336837180/FB_IMG_1590337191887.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917671550877756/FB_IMG_1590337197463.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917671806468116/FB_IMG_1590337215684.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917671999668224/FB_IMG_1590337221063.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917754417741855/FB_IMG_1590337227928.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917755378106368/FB_IMG_1590337234023.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917755747205140/FB_IMG_1590337241692.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917756070035486/FB_IMG_1590337307033.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917756283944960/FB_IMG_1590337330618.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917756439396442/FB_IMG_1590337366564.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917756623683655/FB_IMG_1590337400659.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917756837593178/FB_IMG_1590337437838.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917757122936892/FB_IMG_1590337443502.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917757395435571/FB_IMG_1590337509489.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917892099964949/FB_IMG_1590337515535.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917892640768100/FB_IMG_1590337526396.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917892867391548/FB_IMG_1590337532492.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917893064392724/FB_IMG_1590337546406.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917893311856670/FB_IMG_1590337577592.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917893756715008/FB_IMG_1590337593011.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917893756715008/FB_IMG_1590337593011.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917893983207565/FB_IMG_1590337648981.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917894314557510/FB_IMG_1590337900520.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917894565953556/FB_IMG_1590337906147.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717917894864011314/FB_IMG_1590337914366.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918094181531669/FB_IMG_1590337933415.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918094508425296/FB_IMG_1590337971420.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918094760345650/FB_IMG_1590337988714.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918095057879112/FB_IMG_1590338067325.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918095334965309/FB_IMG_1590338162372.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918095536029736/xE6erYn.png +https://cdn.discordapp.com/attachments/714213422333558804/717918095750070343/wxcVpLf.png +https://cdn.discordapp.com/attachments/714213422333558804/717918095942877234/70CcfIb.png +https://cdn.discordapp.com/attachments/714213422333558804/717918096232284190/nmqS0Mz.png +https://cdn.discordapp.com/attachments/714213422333558804/717918282744856636/lteqmjpizw131.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918283109761034/DxSBsqPWsAENrIU.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918283344642078/original_2.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918283671535638/DuxxUpGUwAA56Z-.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918283998953482/0gzjpy68s8l41.png +https://cdn.discordapp.com/attachments/714213422333558804/717918284380372992/original_3.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918284913311864/b98486f0c39d6bb5e865bfe7e886cea5.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918286221934632/42a1392cf3bc7e9558cfa140bd2d75b3.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918286599421952/0da523354c12f2d762fda2f723d39ca5.png +https://cdn.discordapp.com/attachments/714213422333558804/717918286980841472/himiko_toga_by_ziiha99_dbhyuwx-fullview.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918462642749440/NMNYLcz.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918463011848245/aruHSKJCcBroYrZNBETKOb4CI7BT4mHxmKFyxCU0EMM.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918463376752730/Qz6Hzaj.png +https://cdn.discordapp.com/attachments/714213422333558804/717918463695388703/ZYAkayl.png +https://cdn.discordapp.com/attachments/714213422333558804/717918464068812810/bc3f073f8a388fdb937dc8d5b91aea75.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918464341311498/79e9d8a47f3d16c85222db1edf8dd010.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918464559546459/fc3e7d9ab25314a67bd229f47c3bcf38.png +https://cdn.discordapp.com/attachments/714213422333558804/717918464953548810/4bf5992d18fdbe1334cf08a85a52d1a5.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918465356202024/tumblr_pseajhh1ds1sxvm29o1_1280.png +https://cdn.discordapp.com/attachments/714213422333558804/717918465842872421/tumblr_pw3fhyMLLI1sxvm29o1_1280.png +https://cdn.discordapp.com/attachments/714213422333558804/717918612454899722/g38l5ypjchd31.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918612676935741/tumblr_pq7sbe2Kwj1sxvm29o1_1280.jpeg +https://cdn.discordapp.com/attachments/714213422333558804/717918613939683379/f8c5efb4a8d6e6f2dad9c16e6d90f697.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918614245736544/317e7c3b38b1faa437f51c0b7a499bcd.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918614463709234/21337de4b5f766af8ef706dbe3f64fe9.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918614673424455/0d7c90058e681735e0a3f005c21ab0c6.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918615080534016/8df4759d5eba430de7a0092bd6e67142.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918615289987092/71fff5e0a30648a1ea07ed17e061bdbe.jpg +https://cdn.discordapp.com/attachments/714213422333558804/717918615567073360/948fe749afc4d70a13bfbb869e395c00.jpg \ No newline at end of file