vivinano / MudaeAutoBot

python bot that uses strictly the **Discord API** to Roll,Claim,and Kakera Snipe in Mudae. 5/10/21 project converted over to discum library
Apache License 2.0
141 stars 46 forks source link

SyntaxError: Non-ASCII character '\xf0 #67

Closed Lucas-topper closed 3 years ago

Lucas-topper commented 3 years ago

whenever I turn on the bot this error could help me?

vivinano commented 3 years ago

send your $settings if it's premium there issues transcribing but send me the picture of the error so I can determine where in the code it is crashing

Sent from my iPhone

On Jun 27, 2021, at 4:10 PM, Lucas-topper @.***> wrote:

 whenever I turn on the bot this error could help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Lucas-topper commented 3 years ago

could you send me your discord? over there it's better to talk about it.

vivinano commented 3 years ago

Currently only have my personal discord set up and I don't really check on it much so I would respond quicker here

Sent from my iPhone

On Jun 27, 2021, at 5:15 PM, Lucas-topper @.***> wrote:

 could you send me your discord? over there it's better to talk about it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Lucas-topper commented 3 years ago

IMG_20210627_201253 oh ok this is the error

vivinano commented 3 years ago

made some changes which should force the interpreter to read it in unicode instead of asc-II so redownload the repo and try again

Lucas-topper commented 3 years ago

I just cloned the repository and changed the config.json, that was the only change I made to the code.

vivinano commented 3 years ago

Same error ? And are you using Windows or Linux ?

Sent from my iPhone

On Jun 27, 2021, at 8:07 PM, Lucas-topper @.***> wrote:

 I just cloned the repository and changed the config.json, that was the only change I made to the code.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Lucas-topper commented 3 years ago

i'm trying on the glitch site to host the selfbot, they use the Debian system (The Linux distro)

vivinano commented 3 years ago

Ah yes so there a thing that won't write to file because it's code for windows

I was gonna implement the change to support Linux

Basically

Channaldata/file Is windows

Channeldata\file is Linux

Sent from my iPhone

On Jun 27, 2021, at 9:00 PM, Lucas-topper @.***> wrote:

 i'm trying on the glitch site to host the selfbot, they use the Debian system (The Linux distro)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Lucas-topper commented 3 years ago

also forgot to mention, i tried running the code on my linux and the error is the same.

vivinano commented 3 years ago

Yeah basically currently implementation is write for a windows file structure didn't write it for Linux since no one asked but I can quickly implement a fix but it's still giving the same asc II error ? Or is it a different error

Sent from my iPhone

On Jun 27, 2021, at 9:07 PM, Lucas-topper @.***> wrote:

 also forgot to mention, i tried running the code on my linux and the error is the same.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vivinano commented 3 years ago

Added support for linux Filesystems now try to reclone and run it now and tell me if there are errors

vivinano commented 3 years ago

@Lucas-topper just checking in to make sure you tried to run it ?

Lucas-topper commented 3 years ago

I saw this message now, I'm going to clone the repository again and test it. and yes I ran it several times and the error was always the same.

Lucas-topper commented 3 years ago

now gave this error: (I think it's just a configuration error not a problem with the system) IMG_20210628_174541

vivinano commented 3 years ago

well this error is a python error I think you are using a older version of python and the

F is a format string and older versions of python doesnt support that so what python version are u running ? the minimum requirments are python 3.6+

Lucas-topper commented 3 years ago

i upgraded to python 3.8.10 and gave this error IMG_20210628_191016

vivinano commented 3 years ago

On the read me there should be a site paste you setting_json into the textbox and it should validate your json

Sent from my iPhone

On Jun 28, 2021, at 6:11 PM, Lucas-topper @.***> wrote:

 i upgraded to python 3.6 and gave this error

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vivinano commented 3 years ago

Issue still persist ?

Lucas-topper commented 3 years ago

yes the problem continues even after validating the json.

vivinano commented 3 years ago

and the settings.json is in the same folder as the bot ?

vivinano commented 3 years ago

is it the same json load error ?

Lucas-topper commented 3 years ago

yes, the settings are in the same folder as the main code file and the error is the same. IMG_20210629_081412 IMG_20210629_081434

vivinano commented 3 years ago

Can you post your Json file and let me see if there any issues Keep in mind to blur out ur user token B4 posting

Sent from my iPhone

On Jun 29, 2021, at 7:15 AM, Lucas-topper @.***> wrote:

 yes, the settings are in the same folder as the main code file and the error is the same.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Lucas-topper commented 3 years ago

{ "token":"o", "channel_ids":[ 854166713704644629, 854166713704644629, 854166713704644629 ], "claim_delay":3, "kak_delay":4, "use_emoji":"<:gadani:750702893212106843>", "roll_this":"wa", "rolling":"True", "pkmrolling":"false", "series_list":[ "Jujutsu Kaisen", "Hunter × Hunter" ], "namelist":[ "killua Zoldyck" ], "emoji_list":[ "kakera", "kakeraT", "kakeraG", "kakeraY", "kakeraO", "kakeraR", "kakeraW", "kakeraL" ], "soulemoji_list":[ "kakeraO", "kakeraR", "KakeraW", "KakeraL" ], "min_kak":500, "Last_True":"True", "last_claim_min":10, "min_kak_last_min":30 }"min"": 10, ""min_kak_last_min""\": 30 }"}

este é o meu json depois de validado

vivinano commented 3 years ago

image

it is saying its invalid ??

did it say it was valid for you ?

vivinano commented 3 years ago

so unless this is a copy paste error that is your problem. just fix the errors in your json file

Lucas-topper commented 3 years ago

yes, it said it was valid when I put it there

vivinano commented 3 years ago

Well I copy and pasted the one you posted and it’s saying it’s invalid

Just remove the ones in red and you should be fine

Sent from my iPhone

On Jun 29, 2021, at 4:11 PM, Lucas-topper @.***> wrote:

 yes, it said it was valid when I put it there

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Lucas-topper commented 3 years ago

I fixed errors in json and started without any error But the terminal is spaming profile information and does not send messages in chat

Lucas-topper commented 3 years ago

IMG_20210629_174324 this kind of profile thing

vivinano commented 3 years ago

You are using an older version of discum you are running version 1.1

The bot needs discum 1.3+

Sent from my iPhone

On Jun 29, 2021, at 4:44 PM, Lucas-topper @.***> wrote:



esse tipo de coisa

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vivinano commented 3 years ago

since this is falling down the path of being a python enviroment issue or a Discum specific issue. I will be closing this issue soon as stated in my readme I'm no longer gonna offer support for discum issues as there is a whole other dev team that handles that.

If there is anymore questions about the bot itself feel free to ask as if not I will be closing this issue in a couple of hours

Lucas-topper commented 3 years ago

IMG_20210629_213856

vivinano commented 3 years ago

https://github.com/Merubokkusu/Discord-S.C.U.M

please refer to the discum repo

vivinano commented 3 years ago

alright since this issue has been moved over into discum territory I will be closing this issue if there is an issue that is not related to discum I'll glady answer when this issue is reopened

vivinano commented 3 years ago

I know i closed this issue but was making sure you were able to read the reply from discum as i see the issue has been answered and you have no replied to them yet image

Lucas-topper commented 3 years ago

I know this issue was closed but I'll send it right here, after I managed to install discum 1.3 it gave this error when running (this is on my computer and not on vps) File /MudaeAutoBot/MudaeAutoBot.py", line 653, in on_message for matched_channel in (set(guild['channels'].keys()) & chs): KeyError: 'channels'

vivinano commented 3 years ago

basically the program is design in a way that if $settings is not found either by file , via search , or via the default settings then it get removed from the list hence then it is an "empty"

basically just run it again and it should work if problem persist let me know via opening another issue

Lucas-topper commented 3 years ago

worked, thank you