freddyaboulton HF staff commited on
Commit
fcecf22
1 Parent(s): d378a29

Deploy Discord Bot

Browse files
Files changed (1) hide show
  1. app.py +3 -19
app.py CHANGED
@@ -56,13 +56,6 @@ thread_to_client = {}
56
  thread_to_user = {}
57
 
58
 
59
- # @bot.command()
60
- # @commands.is_owner()
61
- # async def sync(ctx) -> None:
62
- # synced = await bot.tree.sync()
63
- # await ctx.send(f"Synced commands: {', '.join([s.name for s in synced])}.")
64
-
65
-
66
  @bot.hybrid_command(
67
  name="llamachat",
68
  description="Enter some text to chat with the bot! Like this: /llamachat Hello, how are you?",
@@ -177,19 +170,10 @@ else:
177
 
178
  ## How to use it?
179
 
180
- The bot can be triggered via `!llamachat` followed by your text prompt.
181
-
182
- ## Enabling slash commands
183
-
184
- If you are the owner of this bot, call the `!sync` command from your discord server.
185
- This will allow anyone in your server to call the bot via `/llamachat`.
186
- This is known as a slash command and is a nicer experience than calling the bot via `!llamachat`.
187
-
188
- After calling `!sync`, it may take a few minutes for `/llamachat` to be recognized as a valid command
189
- in your server.
190
 
191
- ⚠️ Note ⚠️: It is best to create a separate bot per command if you intend to use slash commands. Also make sure
192
- none of your bots have matching command names.
193
  """
194
 
195
 
 
56
  thread_to_user = {}
57
 
58
 
 
 
 
 
 
 
 
59
  @bot.hybrid_command(
60
  name="llamachat",
61
  description="Enter some text to chat with the bot! Like this: /llamachat Hello, how are you?",
 
170
 
171
  ## How to use it?
172
 
173
+ The bot can be triggered via `/llamachat` followed by your text prompt.
 
 
 
 
 
 
 
 
 
174
 
175
+ ⚠️ Note ⚠️: Please make sure this bot's command does have the same name as another command in your server.
176
+ ⚠️ Note ⚠️: Bot commands do not work in DMs with the bot as of now.
177
  """
178
 
179