Fixed stray "V" at the end of a line
This commit is contained in:
parent
a8472c1629
commit
2fcd69c881
|
@ -2,6 +2,7 @@ import logging
|
||||||
from os import getenv
|
from os import getenv
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
import sentry_sdk as sentry
|
||||||
from naff import (
|
from naff import (
|
||||||
Client,
|
Client,
|
||||||
Guild,
|
Guild,
|
||||||
|
@ -111,6 +112,7 @@ class HeimdallrClient(Client):
|
||||||
|
|
||||||
@slash_command(name="ping", description="Ping the bot")
|
@slash_command(name="ping", description="Ping the bot")
|
||||||
async def ping_command(self, ctx: InteractionContext):
|
async def ping_command(self, ctx: InteractionContext):
|
||||||
|
with sentry.start_transaction(op="ping"):
|
||||||
ctx.ephemeral = True
|
ctx.ephemeral = True
|
||||||
await ctx.send("Pong!", components=RoleSelectMenu(placeholder="HONK"))
|
await ctx.send("Pong!", components=RoleSelectMenu(placeholder="HONK"))
|
||||||
|
|
||||||
|
@ -283,6 +285,8 @@ def main():
|
||||||
JoinLeave.create_table()
|
JoinLeave.create_table()
|
||||||
|
|
||||||
# Load extensions
|
# Load extensions
|
||||||
|
if (sentry_token := getenv("SENTRY_TOKEN")) is not None:
|
||||||
|
bot.load_extension("naff.ext.sentry", token=sentry_token)
|
||||||
bot.load_extension("heimdallr.commands.admin")
|
bot.load_extension("heimdallr.commands.admin")
|
||||||
bot.load_extension("heimdallr.commands.gatekeep")
|
bot.load_extension("heimdallr.commands.gatekeep")
|
||||||
bot.load_extension("heimdallr.commands.quote")
|
bot.load_extension("heimdallr.commands.quote")
|
||||||
|
@ -291,9 +295,10 @@ def main():
|
||||||
bot.load_extension("heimdallr.commands.polls")
|
bot.load_extension("heimdallr.commands.polls")
|
||||||
bot.load_extension("heimdallr.commands.bot_messages")
|
bot.load_extension("heimdallr.commands.bot_messages")
|
||||||
bot.load_extension("heimdallr.commands.modmail")
|
bot.load_extension("heimdallr.commands.modmail")
|
||||||
bot.load_extension("heimdallr.commands.keyword_notify")V
|
bot.load_extension("heimdallr.commands.keyword_notify")
|
||||||
bot.start(getenv("DISCORD_TOKEN"))
|
bot.start(getenv("DISCORD_TOKEN"))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
import naff.ext.sentry
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue