Browse Source

.

tags/v1.0.0
roxie 6 years ago
parent
commit
b8e9781dd0
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      cogs/reddit.py

+ 1
- 6
cogs/reddit.py View File

import requests import requests
from bs4 import BeautifulSoup from bs4 import BeautifulSoup


# Warning, this cog sucks so much but hopefully it works and doesn't break the bot too much
# Warning, this cog sucks so much but hopefully it works and doesn't break the bot too much. Just lazily edited old code and bodged it into this one.




class RedditMedia: class RedditMedia:
return url2 return url2







class Reddit(): class Reddit():
def __init__(self, Bot): def __init__(self, Bot):
self.bot = Bot self.bot = Bot
return await self.bot.say(text + url) return await self.bot.say(text + url)






def setup(Bot): def setup(Bot):
Bot.add_cog(Reddit(Bot)) Bot.add_cog(Reddit(Bot))

Loading…
Cancel
Save