Araeynn commited on
Commit
f33a97d
1 Parent(s): 35bc8ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -48,7 +48,8 @@ def ec(x, fd="<|image|>", sd="<|image|>"):
48
  matches = matches if matches else [""]
49
  return matches
50
 
51
- bot = discord.Bot()
 
52
 
53
  @bot.event
54
  async def on_ready():
@@ -99,6 +100,7 @@ async def on_message(message:discord.Message):
99
  if images != []:
100
  imgCaption += ")"
101
  if os.path.exists(f"data/{message.guild.name}/{message.channel.name}"):
 
102
  with open(f"data/{message.guild.name}/{message.channel.name}", "a") as f:
103
  n = "\n"
104
  if message.author.bot:
 
48
  matches = matches if matches else [""]
49
  return matches
50
 
51
+ intents = discord.Intents.all()
52
+ bot = discord.Bot(intents=intents)
53
 
54
  @bot.event
55
  async def on_ready():
 
100
  if images != []:
101
  imgCaption += ")"
102
  if os.path.exists(f"data/{message.guild.name}/{message.channel.name}"):
103
+ print(message.content)
104
  with open(f"data/{message.guild.name}/{message.channel.name}", "a") as f:
105
  n = "\n"
106
  if message.author.bot: