Skip to content

Commit

Permalink
feat: Contribute command
Browse files Browse the repository at this point in the history
Closes #41
  • Loading branch information
conaticus committed May 29, 2024
1 parent d45c758 commit a097cb4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Boolean/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public static class Strings
"__**/set channel <purpose>**__\n" +
"\u2800Marks a channel for a specific purpose, such as for welcoming messages, starboard, server logs, etc.\n";

public const string ContributeMsg = "Hello and thank you for your interest in contributing to Boolean!\n\n" +
"To get started, please visit our open source [repository](https://github.com/conaticusgrp/boolean) and check out our [contributing guide](https://github.com/conaticusgrp/boolean/blob/main/CONTRIBUTING.md). " +
"Once completed, you may review our [issues](https://github.com/conaticusgrp/boolean/issues) and choose whichever task you are interested in.";

public static string WelcomeMsg(string userDisplay, string serverName) =>
$"Hello {userDisplay}, thank you for joining the **{serverName}** server!";
}
Expand Down
4 changes: 1 addition & 3 deletions Boolean/DataContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,4 @@ public class StarReaction
public uint ReactionCount { get; set; } = 1;

public ulong MessageSnowflake { get; set; }


}
}
13 changes: 13 additions & 0 deletions Boolean/Modules/BotInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,17 @@ public async Task Help()
};
await RespondAsync(embed: embed.Build(), ephemeral: true);
}

[SlashCommand("contribute", "Information on how to contribute to the discord bot.")]
public async Task Contribute()
{
var embed = new EmbedBuilder
{
Title = "Contributing to Boolean",
Description = Config.Strings.ContributeMsg,
Color = EmbedColors.Normal
};

await RespondAsync(embed: embed.Build(), ephemeral: true);
}
}

0 comments on commit a097cb4

Please sign in to comment.