Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 11, 2023
1 parent 1c01848 commit 0bdf80c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions discordgsm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,26 @@ async def modal_on_submit(interaction: Interaction):
return modal


@tree.command(name='sponsor', description='Sponsor to DiscordGSM', guilds=whitelist_guilds)
async def command_sponsor(interaction: Interaction):
"""Sponsor to DiscordGSM"""
Logger.command(interaction)

title = 'DiscordGSM/GameServerMonitor'
description = \
"""
Thank you for considering a DiscordGSM sponsorship!
DiscordGSM is a free and open-source solution to your discord server monitoring your game servers on Discord and tracking the live data of your game servers.
Your sponsorship helps us keep a team of maintainers actively working to improve DiscordGSM and ensure it stays up-to-date with the latest Discord changes.
"""
embed = Embed(title=title, description=description, color=discord.Color.from_rgb(88, 101, 242))
embed.add_field(name='❤️ Github Sponsor', value='https://github.com/sponsors/DiscordGSM')
embed.add_field(name='⭐ Give us a star on Github', value='https://discordgsm.com/github')
await interaction.response.send_message(embed=embed)


@tree.command(name='queryserver', description='command.queryserver.description', guilds=whitelist_guilds)
@app_commands.guild_only()
@app_commands.describe(game_id='command.option.game_id')
Expand Down

0 comments on commit 0bdf80c

Please sign in to comment.