rename cog to preview.py and add youtube preview functionality

This commit is contained in:
2023-03-24 10:04:50 +01:00
parent a1b47248e3
commit 337f4abfcd
4 changed files with 36 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ def checkrole(roles):
# check if the source channel is in the list of channels that are watched by the bot.
def checkchannel(channelid):
if channelid in env.GIFCHANNELS:
if channelid in env.PREVIEWCHANNELS:
return True
else:
return False