Add Olli memes
This commit is contained in:
@@ -9,6 +9,7 @@ https://discordpy.readthedocs.io/en/latest/ext/commands/cogs.html
|
||||
# IMPORTS - external
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
import random
|
||||
|
||||
# IMPORTS - internal
|
||||
import loadconfig
|
||||
@@ -37,7 +38,7 @@ class Utility(commands.Cog):
|
||||
|
||||
link_embed = discord.Embed(color=discord.Colour.blue())
|
||||
link_embed.add_field(
|
||||
name="Here's and invite to our server:",
|
||||
name="Here's an invite to our server:",
|
||||
value=link,
|
||||
inline=True)
|
||||
link_embed.set_footer(
|
||||
@@ -64,6 +65,14 @@ class Utility(commands.Cog):
|
||||
|
||||
await ctx.send(response)
|
||||
|
||||
@commands.command(name="ollimeme")
|
||||
async def aolli_meme(self, ctx):
|
||||
"""
|
||||
Sends a high quality Olli Meme
|
||||
"""
|
||||
meme = random.choice(loadconfig.__olli_memes__)
|
||||
await ctx.send(meme)
|
||||
|
||||
|
||||
# COG ENDING
|
||||
def setup(bot):
|
||||
|
||||
6
config/olli.py
Normal file
6
config/olli.py
Normal file
@@ -0,0 +1,6 @@
|
||||
#All Olli Memes
|
||||
|
||||
__olli_memes__ = [
|
||||
"https://i.imgflip.com/3xpkiv.jpg"
|
||||
"https://cdn.discordapp.com/attachments/541637988120133634/702992838702399518/grave.png"
|
||||
]
|
||||
BIN
img/avatar.png
BIN
img/avatar.png
Binary file not shown.
|
Before Width: | Height: | Size: 56 KiB |
@@ -28,5 +28,6 @@ try:
|
||||
from config.cogs import __cogs__
|
||||
from config.status import __activity__
|
||||
from config.media import __media_anime__, __media_girl__
|
||||
from config.olli import __olli_memes__
|
||||
except ImportError as error:
|
||||
print(f"Error while importing: {error}")
|
||||
|
||||
Reference in New Issue
Block a user