dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
648 stars 153 forks source link

IndexError: list index out of range #635

Closed xyaneq closed 6 months ago

xyaneq commented 6 months ago

Summary

error

Reproduction Steps

My bots suddenly stopped to work on 17th of December, i didnt change my code.

Code

import re
import asyncio
import requests
from discord.ext import commands
bot = commands.Bot(command_prefix='!')

@bot.event
async def on_message(message):
      # Add a reaction to the sent message

    if message.author == bot.user:
        return  

    if message.channel.id in [1174787292951478312,1162382796606668952,1162383056368308294,1162123845998739546,1113797206936395866, 1099416614321008642,1162121041808724029]:
        await message.add_reaction("🔥")
        await message.channel.send("^")
        await bot.process_commands(message)
@bot.event
async def on_reaction_add(reaction, user):
    if reaction.message.guild.id==591225531131887618:
        if user.id == 307465379004022785 and reaction.emoji == "🔥":
            destination_channel_id = 1146860084576665661
            channel = bot.get_channel(destination_channel_id)
            if channel:
                await channel.send(f"{reaction.message.content}")

bot.run('')

Expected Results

image

Actual Results

Error

System Information

Checklist

Additional Information

No response

mteam88 commented 6 months ago

same error

dacoonkr commented 6 months ago

same for me

dolfies commented 6 months ago

Should be fixed yet again, and the resiliency of these backup solutions should be a little better. Sorry for all the unreliability lately, this fallback code was fairly neglected :/

xyaneq commented 6 months ago

Should be fixed yet again, and the resiliency of these backup solutions should be a little better. Sorry for all the unreliability lately, this fallback code was fairly neglected :/

I'm sorry, its still not working for me, should I update it somehow ?

dolfies commented 6 months ago

Yes, install the alpha of the library from git.

Should be fixed yet again, and the resiliency of these backup solutions should be a little better. Sorry for all the unreliability lately, this fallback code was fairly neglected :/

I'm sorry, its still not working for me, should I update it somehow ?

db-do commented 6 months ago

Yes, install the alpha of the library from git.

Should be fixed yet again, and the resiliency of these backup solutions should be a little better. Sorry for all the unreliability lately, this fallback code was fairly neglected :/

I'm sorry, its still not working for me, should I update it somehow ?

How do I do that?