KarlOfDuty / SupportBoi

A support ticket Discord bot.
https://karlofduty.com
GNU General Public License v3.0
38 stars 12 forks source link

i need help in adding this to my discord server #37

Closed 32Red closed 4 years ago

32Red commented 4 years ago

i have no experience in code but i wanted to try it and this is the error message it gives me everytime i open the Supportboi_windows.exe: Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\m\Downloads\config.yml"

Unhandled Exception: YamlDotNet.Core.SyntaxErrorException: (Line: 12, Col: 5, Idx: 554) - (Line: 12, Col: 5, Idx: 554): While scanning a simple key, could not find expected ':'. at YamlDotNet.Core.Scanner.StaleSimpleKeys() at YamlDotNet.Core.Scanner.FetchMoreTokens() at YamlDotNet.Core.Scanner.MoveNextWithoutConsuming() at YamlDotNet.Core.Parser.GetCurrentToken() at YamlDotNet.Core.Parser.ParseBlockMappingKey(Boolean isFirst) at YamlDotNet.Core.Parser.MoveNext() at YamlDotNet.Core.ParserExtensions.TryConsume[T](IParser parser, T& event) at YamlDotNet.Serialization.NodeDeserializers.ScalarNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func3 nestedObjectDeserializer, Object& value) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.<>c__DisplayClass3_0.<DeserializeValue>b__0(IParser r, Type t) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.DeserializeHelper(Type tKey, Type tValue, IParser parser, Func3 nestedObjectDeserializer, IDictionary result) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func3 nestedObjectDeserializer, Object& value) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.<>c__DisplayClass3_0.<DeserializeValue>b__0(IParser r, Type t) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.DeserializeHelper(Type tKey, Type tValue, IParser parser, Func3 nestedObjectDeserializer, IDictionary result) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func`3 nestedObjectDeserializer, Object& value) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type type) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch()

KarlOfDuty commented 4 years ago

Put your config into a yaml validator.

32Red commented 4 years ago

sorry, but how do i do that?

KarlOfDuty commented 4 years ago

https://lmgtfy.com/?q=yaml+validator&iie=1

32Red commented 4 years ago

image

KarlOfDuty commented 4 years ago

image

KarlOfDuty commented 4 years ago

I am not even sure where you got that from, that's not the config, thats not even yaml.

32Red commented 4 years ago

lol it was in the support boi file

32Red commented 4 years ago

could you send the original file if possible?

KarlOfDuty commented 4 years ago

Just delete it and run the bot again

32Red commented 4 years ago

alright

32Red commented 4 years ago

i re-installed it and image

32Red commented 4 years ago

same issue 😭

KarlOfDuty commented 4 years ago

I am very confused on what you are doing, just use the config the bot generates for you, stop putting code in it.

32Red commented 4 years ago

so i write it in myself?

KarlOfDuty commented 4 years ago

I don't really know what you mean by that, you have to put in things like the bot token and command permissions yes

32Red commented 4 years ago

can i use the Defualt config as a template?

KarlOfDuty commented 4 years ago

It is the thing you should edit, yes

32Red commented 4 years ago

Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(ReadOnlySpan1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseUInt64(ReadOnlySpan1 value, NumberStyles options, NumberFormatInfo numfmt) at System.String.System.IConvertible.ToUInt64(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token) at Newtonsoft.Json.Linq.Extensions.Convert[T,U](IEnumerable1 source)+MoveNext() at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch()

hmm

KarlOfDuty commented 4 years ago

Just start from the default config and add one thing at a time, then you know what the issue is.

32Red commented 4 years ago

i did that. i went threw it VERY carefully and i found nothing... and it gave me the same message error

32Red commented 4 years ago

Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.InvalidCastException: Null object cannot be converted to a value type. at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch()

KarlOfDuty commented 4 years ago

and what did you add to the config to make this happen? I recommend you just keep the default config and add your bot token for now.

KarlOfDuty commented 4 years ago

I'm not really sure how you are having so many issues with this, there are a lot of users of this bot and I don't think I have ever had anyone with this many issues before.

32Red commented 4 years ago

hmm do you have a default of just the emc supportboi? i can use that for now

KarlOfDuty commented 4 years ago

I can't just give out our passwords and auth tokens...

32Red commented 4 years ago

oh

right

KarlOfDuty commented 4 years ago

Just add one thing, start the bot and see if it complains, then you know there is something wrong with the thing you added and you can tell me what that one thing is.

32Red commented 4 years ago

ok

KarlOfDuty commented 4 years ago

I recommend starting with your bot token and then do database credentials as those are checked first.

32Red commented 4 years ago

do i edit the log channel and stuff?

KarlOfDuty commented 4 years ago

no, just start with the token

32Red commented 4 years ago

ok

KarlOfDuty commented 4 years ago

then do one thing at a time until it breaks

32Red commented 4 years ago

ok good plan

32Red commented 4 years ago

Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.ArgumentNullException: Value cannot be null. Parameter name: value at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch() is the error i got after just putting in my token

KarlOfDuty commented 4 years ago

And what did you do?

KarlOfDuty commented 4 years ago

ah token

32Red commented 4 years ago

ye

32Red commented 4 years ago

there was nothing else i edited

KarlOfDuty commented 4 years ago

does it even work for you if you dont edit anything?

32Red commented 4 years ago

i just put the token in lol everything else is default but it didnt work

KarlOfDuty commented 4 years ago

like just delete everything from the bot folder except the application and start it again twice

32Red commented 4 years ago

wait i didnt get it

KarlOfDuty commented 4 years ago

I will have to go now so you will have to keep trying on your own, good luck

32Red commented 4 years ago

okay ill try cya

KarlOfDuty commented 4 years ago

if you start it once it creates the config and if you start it again it would try to read that config is what I mean, might be some issue with reading the config at all maybe

KarlOfDuty commented 4 years ago

but yeah cya and good luck

32Red commented 4 years ago

ty

32Red commented 4 years ago

ok i worked as hard as i could but i got greeted with this... Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.ArgumentNullException: Value cannot be null. Parameter name: value at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch()

32Red commented 4 years ago

any help?