drizzle-mizzle / CharacterAI-Discord-Bot

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

Keeps on disconnecting #86

Closed Xenability closed 1 year ago

Xenability commented 1 year ago

idk why but it keeps on doing this:

23:48:14 Discord Discord.Net v3.10.0 (API v10) 23:48:14 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) 23:48:14 Gateway Connecting 23:48:15 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()

drizzle-mizzle commented 1 year ago

Do you want me to read the error instead of you by myself?..

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.

Xenability commented 1 year ago

Sorry about not reading the error, I fixed it, but when i enter some commands like find and set character, it keep on giving me this error, and i don't know what does it meant {"detail":"Authentication credentials were not provided."}

drizzle-mizzle commented 1 year ago

Just follow the guide... You did not specify the auth token