drizzle-mizzle / CharacterAI-Discord-Bot

CharacterAI for your Discord server
MIT License
245 stars 60 forks source link

I already checked 'Privileged Gateway Intents' options in my developer page, but it dosen't work #47

Closed AmazingSSUE closed 1 year ago

AmazingSSUE commented 1 year ago

I opened .exe file, it goes

13:36:03 Discord Discord.Net v3.9.0 (API v10) 13:36:03 Gateway Connecting 13:36:04 Gateway Ready 13:36:04 Gateway You're using the GuildPresences intent without listening to the PresenceUpdate event, consider removing the intent from your config. 13:36:04 Gateway Connected

I allowed these options in developer page. PRESENCE INTENT SERVER MEMBERS INTENT MESSAGE CONTENT INTENT

need some help :(

drizzle-mizzle commented 1 year ago

That's not a error. Is says that there's no need for bot to listen to this intent, but it's actually being used in program. Though, bot is not working now, check readme.

AmazingSSUE commented 1 year ago

Thank you for help! <3 And I have a question, should I keep running program while I using this bot? Or it's done with once I run .exe file?

Sorry for poor English :(

drizzle-mizzle commented 1 year ago

Of cource bot will stop working if you close it. If you want to run any program in background, you'll need to run it as a service.

AmazingSSUE commented 1 year ago

I got this problem, (I already read the prior case in 401 issues. but nevertheless i put a correct bot token, it doesn't working yet.) can you give me sone advice again? I invited my bot account in my server.

When i run the .exe file

01:41:44 Discord Discord.Net v3.9.0 (API v10) 01:41:44 Discord A supplied token was invalid.: System.ArgumentException: A Bot token must be at least 58 characters in length. Ensure that the Bot Token provided is not an OAuth client secret. (Parameter 'token') at Discord.TokenUtils.ValidateToken(TokenType tokenType, String token) at Discord.Rest.BaseDiscordClient.LoginInternalAsync(TokenType tokenType, String token, Boolean validateToken) 01:41:44 Gateway Connecting 01:41:44 Gateway Discord.Net.HttpException: The server responded with error 401: 401: Unauthorized at Discord.Net.Queue.RequestBucket.SendAsync(RestRequest request) at Discord.Net.Queue.RequestQueue.SendAsync(RestRequest request) at Discord.API.DiscordRestApiClient.SendInternalAsync(String method, String endpoint, RestRequest request) at Discord.API.DiscordRestApiClient.SendAsync[TResponse](String method, String endpoint, BucketId bucketId, ClientBucketType clientBucket, RequestOptions options) at Discord.API.DiscordRestApiClient.GetBotGatewayAsync(RequestOptions options) at Discord.API.DiscordSocketApiClient.ConnectInternalAsync() at Discord.API.DiscordSocketApiClient.ConnectInternalAsync() at Discord.API.DiscordSocketApiClient.ConnectAsync() at Discord.WebSocket.DiscordSocketClient.OnConnectingAsync() at Discord.ConnectionManager.ConnectAsync(CancellationTokenSource reconnectCancelToken) at Discord.ConnectionManager.<>c__DisplayClass29_0.<b__0>d.MoveNext() 01:41:44 Gateway Disconnecting 01:41:44 Gateway Disconnected

Here is my setting

화면 캡처 2023-03-27 014443

화면 캡처 2023-03-27 014603

I don't know about where I have to fix... Sorry for many questions :=(

drizzle-mizzle commented 1 year ago

I wouldn't recommend to bother right now. As I said, it's not working now anyway, like at all.

drizzle-mizzle commented 1 year ago

About your problem, I think that what error says – is exactly what happened

A Bot token must be at least 58 characters in length. Ensure that the Bot Token provided is not an OAuth client secret.

drizzle-mizzle commented 1 year ago

Maybe you mixed up bot token and character ai user token in Config file

AmazingSSUE commented 1 year ago

Isn't it correct? Check my edit please.. (I already reset my bot token! I should delete this comment if it needs.)

화면 캡처 2023-03-27 021412

drizzle-mizzle commented 1 year ago

Seems correct. In open post logs it seems like you launched it without any problems before... strange

drizzle-mizzle commented 1 year ago

Also, if you use some public wifi, or VPN, it can also cause a problems

AmazingSSUE commented 1 year ago

I using a public wifi. What should I have to use another?

drizzle-mizzle commented 1 year ago

Amm... I mean, a public WiFi in university/work or something like this. If it's your own one, it's fine.

AmazingSSUE commented 1 year ago

Thank you so much for helps!!! :3 I'll try this in my home! Thanks Miz <3

drizzle-mizzle commented 1 year ago

Does it works now? Download last update and check it out.