Added in a way to have the bot message me (its owner.) Added in a sub-command on DeathMessage.
This commit is contained in:
1 parent
b94573353d
commit
5ca7e5272f
3 files changed
+20
-4
No files matched your search
@@ -22,6 +22,7 @@ namespace StarsiegeBot
|
||||
{
|
||||
class Program
|
||||
{
|
||||
public static DiscordMember notify;
|
||||
public readonly EventId BotEventId = new EventId(42, "Bot-Ex04");
|
||||
|
||||
public DiscordClient Client { get; set; }
|
||||
@@ -64,7 +65,7 @@ namespace StarsiegeBot
|
||||
if (args.Length > 0)
|
||||
BotName = args[0].ToLower();
|
||||
else
|
||||
BotName = "ssp";
|
||||
BotName = "cybrid";
|
||||
|
||||
BotEventId = new EventId(276, BotName);
|
||||
}
|
||||
@@ -342,6 +343,7 @@ namespace StarsiegeBot
|
||||
private Task Event_GuildAvailable(DiscordClient d, GuildCreateEventArgs e)
|
||||
{
|
||||
string gId = e.Guild.Id.ToString();
|
||||
// this guild doesnt have settings, make a skel set for them.
|
||||
if (!BotSettings.GuildSettings.ContainsKey(gId))
|
||||
{
|
||||
Console.WriteLine("making config");
|
||||
@@ -356,10 +358,15 @@ namespace StarsiegeBot
|
||||
item.LevelRoles = new Dictionary<string, int>();
|
||||
item.Prefixes = new List<string>();
|
||||
item.SelfRoles = new Dictionary<string, int>();
|
||||
item.Prefixes.Add(">");
|
||||
// this line... is a test line.
|
||||
BotSettings.GuildSettings.Add(gId, item);
|
||||
}
|
||||
|
||||
if (e.Guild.Id == 831348953097961534)
|
||||
{
|
||||
var mems = e.Guild.Members;
|
||||
notify = mems[139548200099905536];
|
||||
}
|
||||
// let's log the name of the guild that was just
|
||||
// sent to our client
|
||||
d.Logger.LogInformation(BotEventId, $"Guild available: {e.Guild.Name}");
|
||||
|
||||
Reference in new issue
Block a user