I was watching the installation video the StrBull has done. But i realized that the coding looks different in on his code. Granted the video was done a year ago. His code looks exactly like the example code. If the code actually said API Key="Bot Token" i would know where to put it right away.
This is what the code is: (line 538)
[JsonProperty(PropertyName = "API Key (Bot Token)")]
public string Apikey { get; set; }
Do i set my token here somewhere or do i travel all the way backup to (line 191)
{
if (string.IsNullOrEmpty(_settings.General.Apikey) || _settings.General.Apikey == null || _settings.General.Apikey == "BotToken")
{
PrintError("API key is empty or invalid!");
return;
}
Im sure thats not it though. Im kinda new to coding, but i know a little, not enough to figure this out. Please help me
Where Do i put my Bot token
You'll need to clarify what you are referring to, as you posted under General Support and haven't provided any details as to what API Key you are referring to.
public class GeneralSettings
{
[JsonProperty(PropertyName = "API Key (Bot Token)")]
public string Apikey { get; set; }
[JsonProperty(PropertyName = "Auto Reload Plugin")]
public bool AutoReloadPlugin { get; set; }
[JsonProperty(PropertyName = "Auto Reload Time (Seconds)")]
public int AutoReloadTime { get; set; }
[JsonProperty(PropertyName = "Enable Bot Status")]
public bool EnableBotStatus { get; set; }
[JsonProperty(PropertyName = "In-Game Report Command")]
public string ReportCommand { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
[DefaultValue(DiscordLogLevel.Info)]
[JsonProperty(PropertyName = "Discord Extension Log Level (Verbose/Debug/Info/Warning/Error/Exception/Off)")]
public DiscordLogLevel ExtensionDebugging { get; set; } = DiscordLogLevel.Info;
}
where do i place my bot token for RustCord. I was unsure as to what forum i was supposed to place my question
Moved to the appropriate support section. You'd want to add it to the oxide/config file for the plugin, not the plugin itself.
i thank you for your time and im sorry for have using up what i have. After closer looking at the file i seem to have overlooked the answer i was looking for and have resolved my issue. Sorry for the inconvenience.