Skip to content

Commit

Permalink
use framework is_owner
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX committed Aug 24, 2021
1 parent c22511d commit c773adb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
4 changes: 2 additions & 2 deletions ftsbot/cogs/rolecommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from dislash import *
from discord.ext import commands
from ftsbot import data
from ftsbot.functions import decoratorfunctions, rolefunctions
from ftsbot.functions import rolefunctions

class rolecommands(commands.Cog):
def __init__(self, bot):
Expand Down Expand Up @@ -43,7 +43,7 @@ async def wikiroles(self, ctx):
message = await ctx.send(embed=discord.Embed(colour=discord.Colour(0x00ff00), description='**Success**: Wiki Roles added to "' + ctx.author.name + '"'))
await message.delete(delay=30)

@decoratorfunctions.is_bot_owner()
@slash_commands.is_owner()
@slash_commands.command(description='Form setup (admin only)')
async def setup(self, ctx):
# Clean up channel
Expand Down
2 changes: 0 additions & 2 deletions ftsbot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
# Copyright 2016-2021 Alex Winkler
# Version 3.0.0

author = 138719439834185728

logtarget = 339287109988909057 # Here the channel id of the channel we want the private channel logs to be stored in
privcat = 360564294401916929 # This is the id of the "Private Channels" Category
16 changes: 0 additions & 16 deletions ftsbot/functions/decoratorfunctions.py

This file was deleted.

0 comments on commit c773adb

Please sign in to comment.