lunarflu HF Staff commited on
Commit
2f44f3b
·
1 Parent(s): 5606bc7

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. deepfloydif.py +3 -0
deepfloydif.py CHANGED
@@ -139,6 +139,9 @@ def combine_images(png_files, stage_1_images, partial_path):
139
  async def deepfloydif_generate64(ctx, prompt):
140
  """DeepfloydIF command (generate images with realistic text using slash commands)"""
141
  try:
 
 
 
142
  channel = ctx.channel
143
  # interaction.response message can't be used to create a thread, so we create another message
144
  message = await ctx.send(f"**{prompt}** - {ctx.author.mention} (generating...)")
 
139
  async def deepfloydif_generate64(ctx, prompt):
140
  """DeepfloydIF command (generate images with realistic text using slash commands)"""
141
  try:
142
+ if ctx.guild.id == 879548962464493619:
143
+ if ctx.channel.id != 1119313215675973714:
144
+ return
145
  channel = ctx.channel
146
  # interaction.response message can't be used to create a thread, so we create another message
147
  message = await ctx.send(f"**{prompt}** - {ctx.author.mention} (generating...)")