Browse Source

Fix for latest d.py

master
noirscape 2 years ago
parent
commit
c8a58edda6
Signed by: noirscape GPG Key ID: 38216818B8894B9F
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      cogs/sample_cog.py
  2. +2
    -2
      cogs/subfoldered_cog/sample_subfolder.py
  3. +1
    -1
      requirements.txt

+ 2
- 2
cogs/sample_cog.py View File

@ -1,6 +1,6 @@
from discord.ext import commands
class SampleCog:
class SampleCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@ -10,4 +10,4 @@ class SampleCog:
await ctx.send('bar')
def setup(bot):
bot.add_cog(SampleCog(bot))
bot.add_cog(SampleCog(bot))

+ 2
- 2
cogs/subfoldered_cog/sample_subfolder.py View File

@ -1,6 +1,6 @@
from discord.ext import commands
class SubfolderSampleCog:
class SubfolderSampleCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@ -10,4 +10,4 @@ class SubfolderSampleCog:
await ctx.send('bar')
def setup(bot):
bot.add_cog(SubfolderSampleCog(bot))
bot.add_cog(SubfolderSampleCog(bot))

+ 1
- 1
requirements.txt View File

@ -1,2 +1,2 @@
pyyaml
git+https://github.com/Rapptz/discord.py@rewrite
discord

Loading…
Cancel
Save