joytou commited on
Commit
a38c7a5
·
1 Parent(s): a3e84c1

Add inspect for testing discord

Browse files
Files changed (2) hide show
  1. discord_bot.py +3 -0
  2. requirements.txt +1 -0
discord_bot.py CHANGED
@@ -8,6 +8,7 @@ from discord.ext import commands
8
  from threading import Thread
9
  import json
10
  from horde import HordeAPI
 
11
 
12
 
13
  TYPE_MAPPING = {
@@ -81,6 +82,8 @@ async def generateStatus(interaction: discord.Interaction, id: str):
81
  await interaction.followup.send(f'Position in queue: {details["queue_position"]}, wait time: {details["wait_time"]}s')
82
  """
83
 
 
 
84
  async def hello():
85
  return f"Hello, {interaction.user.mention}!"
86
 
 
8
  from threading import Thread
9
  import json
10
  from horde import HordeAPI
11
+ import inspect
12
 
13
 
14
  TYPE_MAPPING = {
 
82
  await interaction.followup.send(f'Position in queue: {details["queue_position"]}, wait time: {details["wait_time"]}s')
83
  """
84
 
85
+ print(inspect.getargspec(app_commands.Command).args)
86
+
87
  async def hello():
88
  return f"Hello, {interaction.user.mention}!"
89
 
requirements.txt CHANGED
@@ -10,3 +10,4 @@ py-cord
10
  discord-py-interactions
11
  nextcord
12
  httpx
 
 
10
  discord-py-interactions
11
  nextcord
12
  httpx
13
+ inspect