MudaeAutoBot icon indicating copy to clipboard operation
MudaeAutoBot copied to clipboard

not working

Open deathfx6-a opened this issue 8 months ago • 5 comments

2025-04-21 20:00:52 ERROR discord.client Ignoring exception in on_ready Traceback (most recent call last): File "C:\Users\fx6ha\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 507, in _run_event await coro(*args, **kwargs) File "C:\Users\fx6ha\Downloads\mudae\mudae\mudaebot3.py", line 312, in on_ready historyc = await discord.utils.find(lambda m: m.author.id == mudae and "togglehentai" in m.content, channel.history(limit=None)) AttributeError: 'NoneType' object has no attribute 'history'

deathfx6-a avatar Apr 21 '25 17:04 deathfx6-a

Experiencing the same issue here.

PS D:\REDACTED\MudaeAutoBot> python .\mudaebot3.py
2025-05-18 19:12:08 INFO     discord.client Logging in using static token.
2025-05-18 19:12:08 INFO     discord.http Found user agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36, build number 400453.
2025-05-18 19:12:10 INFO     discord.gateway Connected to Gateway (Session ID: REDACTED).
Logged on as REDACTED!
💖│mudae
None
2025-05-18 19:12:11 ERROR    discord.client Ignoring exception in on_ready
Traceback (most recent call last):
  File "C:\REDACTED\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\client.py", line 507, in _run_event
    await coro(*args, **kwargs)
  File "D:\REDACTED\MudaeAutoBot\mudaebot3.py", line 312, in on_ready
    historyc = await discord.utils.find(lambda m: m.author.id == mudae and "togglehentai" in m.content, channel.history(limit=None))
                                                                                                        ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'history'

I validated my JSON file.

I've ensured I'm using Python 3.12 (for audioop support).

I've installed discum, discord.py-self, and their dependencies.

I've updated all of my other python packages (except for websocket-client, which I've kept at 0.59.0 as required by discum)

Package            Version
------------------ ------------
aiohappyeyeballs   2.6.1
aiohttp            3.11.18
aiosignal          1.3.2
argcomplete        3.6.2
attrs              25.3.0
Brotli             1.1.0
certifi            2025.4.26
chardet            5.2.0
charset-normalizer 3.4.2
click              8.2.0
colorama           0.4.6
deemix             3.6.6
deezer-py          1.3.7
defusedxml         0.7.1
discord-protos     0.0.2
discord.py-self    2.0.1
discum             1.4.1
ffmpeg-python      0.2.0
filetype           1.2.0
frozenlist         1.6.0
future             1.0.0
html5lib           1.1
idna               3.10
m3u8               6.0.0
multidict          6.4.3
mutagen            1.47.0
packaging          25.0
pillow             11.2.1
pip                25.1.1
pip-review         1.3.0
pipx               1.7.1
platformdirs       4.3.8
propcache          0.3.1
protobuf           6.31.0
pycryptodomex      3.23.0
python-dateutil    2.9.0.post0
pytz               2025.2
pywin32            310
requests           2.32.3
requests-toolbelt  1.0.0
six                1.17.0
tqdm               4.67.1
typing_extensions  4.13.2
ua-parser          1.0.1
ua-parser-builtins 0.18.0.post1
urllib3            2.4.0
urwid              3.0.2
userpath           1.9.2
wcwidth            0.2.13
webencodings       0.5.1
websocket-client   0.59.0
yarl               1.20.0

seangibbz avatar May 19 '25 02:05 seangibbz

It’s trying to look for a instance of you using $settings or anyone using $settings so it can populate your channel settings Sent from my iPhoneOn May 18, 2025, at 10:23 PM, Sean Gibbons @.***> wrote: seangibbz left a comment (vivinano/MudaeAutoBot#287) Experiencing the same issue here. PS D:\REDACTED\MudaeAutoBot> python .\mudaebot3.py 2025-05-18 19:12:08 INFO discord.client Logging in using static token. 2025-05-18 19:12:08 INFO discord.http Found user agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36, build number 400453. 2025-05-18 19:12:10 INFO discord.gateway Connected to Gateway (Session ID: REDACTED). Logged on as REDACTED! 💖│mudae None 2025-05-18 19:12:11 ERROR discord.client Ignoring exception in on_ready Traceback (most recent call last): File "C:\REDACTED\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\client.py", line 507, in _run_event await coro(*args, **kwargs) File "D:\REDACTED\MudaeAutoBot\mudaebot3.py", line 312, in on_ready historyc = await discord.utils.find(lambda m: m.author.id == mudae and "togglehentai" in m.content, channel.history(limit=None)) ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'history' I validated my JSON file. I've ensured I'm using Python 3.12 (for audioop support). I've installed discum, discord.py-self, and their dependencies. I've updated all of my other python packages (except for websocket-client, which I've kept at 0.59.0 as required by discum)

Package Version


aiohappyeyeballs 2.6.1 aiohttp 3.11.18 aiosignal 1.3.2 argcomplete 3.6.2 attrs 25.3.0 Brotli 1.1.0 certifi 2025.4.26 chardet 5.2.0 charset-normalizer 3.4.2 click 8.2.0 colorama 0.4.6 deemix 3.6.6 deezer-py 1.3.7 defusedxml 0.7.1 discord-protos 0.0.2 discord.py-self 2.0.1 discum 1.4.1 ffmpeg-python 0.2.0 filetype 1.2.0 frozenlist 1.6.0 future 1.0.0 html5lib 1.1 idna 3.10 m3u8 6.0.0 multidict 6.4.3 mutagen 1.47.0 packaging 25.0 pillow 11.2.1 pip 25.1.1 pip-review 1.3.0 pipx 1.7.1 platformdirs 4.3.8 propcache 0.3.1 protobuf 6.31.0 pycryptodomex 3.23.0 python-dateutil 2.9.0.post0 pytz 2025.2 pywin32 310 requests 2.32.3 requests-toolbelt 1.0.0 six 1.17.0 tqdm 4.67.1 typing_extensions 4.13.2 ua-parser 1.0.1 ua-parser-builtins 0.18.0.post1 urllib3 2.4.0 urwid 3.0.2 userpath 1.9.2 wcwidth 0.2.13 webencodings 0.5.1 websocket-client 0.59.0 yarl 1.20.0

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

vivinano avatar May 19 '25 23:05 vivinano

I've made sure that there is an instance of $settings in the searched channel. However, it still comes up with the issue.

I think the issue might be due to the settings layout being slightly different than what the script expects (e.g. togglensfw instead of togglehentai used in earlier versions of mudae)

🛠️ __**Server Settings**__ 🛠️
(Server not premium)

· Prefix: **$** ($prefix)
· Lang: **en** ($lang)
· Claim reset: every **180** min. ($setclaim)
· Exact minute of the reset: xx:**05** ($setinterval)
· Reset shifted: by +**0** min. ($shifthour)
· Rolls per hour: **13** ($setrolls)
· Time before the claim reaction expires: **45** sec. ($settimer)
· Spawn rarity multiplicator for already claimed characters: **4** ($setrare)
· % kakera bonus: **+0** ($setkakerabonus)
· Game mode: **1** ($gamemode)
· This channel instance: **1** ($channelinstance)
· Slash commands: enabled ($toggleslash)

· Ranking: enabled ($toggleclaimrank/$togglelikerank)
· Ranks displayed during rolls: claims only ($togglerolls)
· NSFW series: **disabled** ($togglensfw)
· Disturbing imagery series: enabled ($toggledisturbing)
· Child characters: enabled ($togglechildtag)
· Rolls sniping: **1** ($togglesnipe) => **8** sec.
· Kakera sniping: **2** ($togglekakerasnipe) => **8** sec.
· Limit of characters per harem: **10,000** ($haremlimit)
· Reacts: ****for all your rolls**** ($togglereact)
· Custom reactions: no ($claimreact)
· Kakera reactions more recognizable: no ($kakerareact switchset)

· Kakera trading: enabled ($togglekakeratrade)
· Kakera calculation: claim and like ranks (and number of claimed characters) ($togglekakeraclaim/$togglekakeralike)
· Kakera value displayed during rolls: enabled ($togglekakerarolls)
· $kakeraloot wishprotect: enabled ($togglewishprotect)

seangibbz avatar May 20 '25 07:05 seangibbz

It looks like the root cause of it failing to find settings is due to the script looking in some hardcoded channels at lines 311 and 317, as opposed to the channel specified in the settings file.

channel = self.get_channel(807061915515093023)
...
channel_settings[807061315792928948] = c_settings

Should instead be:

channel = self.get_channel(xchan)
...
channel_settings[xchan] = c_settings

Additionally, I changed all instances of togglehentai to togglensfw.

After those changes, the script outputs settings normally.

seangibbz avatar May 20 '25 08:05 seangibbz

It might have been when I was pushing my test settings on my mudae yeah that definitely looks correct in terms of a fix

vivinano avatar May 25 '25 11:05 vivinano