Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Simple Verification Rewrite #9

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
56 changes: 0 additions & 56 deletions cogs/extra.py

This file was deleted.

33 changes: 0 additions & 33 deletions cogs/guild_join.py

This file was deleted.

45 changes: 1 addition & 44 deletions cogs/help.py
Original file line number Diff line number Diff line change
@@ -1,44 +1 @@
import nextcord
from nextcord.ext import commands, tasks
from nextcord import Interaction, SlashOption
import json


class HelpButtons(nextcord.ui.View):
def __init__(self):
super().__init__()
self.add_item(nextcord.ui.Button(label="Support Server", url="https://discord.gg/aGzvXvTkP8"))
self.add_item(nextcord.ui.Button(label="Invite", url="https://discord.com/api/oauth2/authorize?client_id=981835181243658260&permissions=8&scope=bot%20applications.commands"))
self.add_item(nextcord.ui.Button(label="Vote", url="https://top.gg/bot/828584622156939274/vote"))


class Help(commands.Cog):

def __init__(self, client):
self.client = client

@nextcord.slash_command(name="help", description="Help command")
async def help(self,
ctx: Interaction):
await ctx.response.defer()
embed = nextcord.Embed(title=(f"Help"), description=(f"""Below is a list of all commands you will need:"""), colour=0xadd8e6)
embed.add_field(name=f"/config enable", value=f"""Explanation: Enable any settings you want to
Requires: Administrator
Usage: ``/config enable``""")
embed.add_field(name=f"/config disable", value=f"""Explanation: Disable any settings you want to
Requires: Administrator
Usage: ``/config disable``""")
embed.add_field(name=f"/verifymessage", value=f"""Explanation: Send a verification message to a channel
Requires: Administrator
Usage: ``/verifymessage <#channel> [Custom (True/False)]``""")
embed.add_field(name=f"/botinfo", value=f"""Explanation: Shows general bot info
Requires: None
Usage: ``/botinfo``""")
embed.add_field(name="\u200B", value=f"[Support Server](https://discord.gg/aGzvXvTkP8) | [Invite Me](https://discord.com/api/oauth2/authorize?client_id=981835181243658260&permissions=8&scope=bot%20applications.commands) | [Vote](https://top.gg/bot/828584622156939274/vote)", inline=False)


await ctx.send(embed=embed, view=HelpButtons())


def setup(client):
client.add_cog(Help(client))
import nextcord
184 changes: 0 additions & 184 deletions cogs/settings.py

This file was deleted.

Loading