Skip to content

Commit

Permalink
Add descriptions to current modules for Issue #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper Gray committed May 2, 2020
1 parent c98d34b commit 166f968
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Floofbot/Modules/Administration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Administration : ModuleBase<SocketCommandContext>

[Command("ban")]
[Alias("b")]
[Summary("Bans a user from the server")]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.BanMembers)]
public async Task YeetUser(string input, [Remainder] string reason = "No Reason Provided")
Expand Down Expand Up @@ -48,6 +49,7 @@ public async Task YeetUser(string input, [Remainder] string reason = "No Reason
}
[Command("kick")]
[Alias("k")]
[Summary("Kicks a user from the server")]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.KickMembers)]
public async Task kickUser(string user, [Remainder] string reason = "No Reason Provided")
Expand Down Expand Up @@ -79,6 +81,7 @@ public async Task kickUser(string user, [Remainder] string reason = "No Reason P

[Command("warn")]
[Alias("w")]
[Summary("Warns a user on the server, with a given reason")]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.BanMembers)]
public async Task warnUser(string user, [Remainder] string reason = "")
Expand Down Expand Up @@ -128,6 +131,7 @@ public async Task warnUser(string user, [Remainder] string reason = "")

[Command("warnlog")]
[Alias("wl")]
[Summary("Displays the warning log for a given user")]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.BanMembers)]
public async Task warnlog(string user)
Expand All @@ -154,6 +158,7 @@ public async Task warnlog(string user)


[Command("lock")]
[Summary("Locks a channel")]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.ManageMessages)]
public async Task ChannelLock()
Expand All @@ -178,6 +183,7 @@ public async Task ChannelLock()
}

[Command("unlock")]
[Summary("Unlocks a channel")]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.ManageMessages)]

Expand All @@ -204,6 +210,7 @@ public async Task ChannelUnLock()

// rfurry Discord Rules Gate
[Command("ireadtherules")]
[Summary("Allows a user into the server")]
public async Task getaccess()
{
if (Context.Guild.Id == 225980129799700481) {
Expand Down
1 change: 1 addition & 0 deletions Floofbot/Modules/Fun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class fun : ModuleBase<SocketCommandContext>
{

[Command("8ball")]
[Summary("Gives an 8ball response to a given question")]
public async Task eightball([Remainder]string question)
{
var responses = new List<string> {
Expand Down
4 changes: 4 additions & 0 deletions Floofbot/Modules/Tag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public Tag()
}

[Command("add")]
[Summary("Adds a tag")]
[Priority(0)]
[RequireUserPermission(GuildPermission.AttachFiles)]
public async Task Add(string Tag, [Remainder] string Content = null)
Expand Down Expand Up @@ -87,6 +88,7 @@ public async Task Add()

//TODO: Fix me
[Command("list")]
[Summary("Lists all tags")]
[RequireUserPermission(GuildPermission.AttachFiles)]
public async Task Listtags([Remainder] string Content = null)
{
Expand Down Expand Up @@ -119,6 +121,7 @@ public async Task Listtags([Remainder] string Content = null)
}

[Command("remove")]
[Summary("Removes a tag")]
[RequireUserPermission(GuildPermission.ManageMessages)]
public async Task Remove(string tag)
{
Expand Down Expand Up @@ -162,6 +165,7 @@ public async Task Remove()
}

[Command]
[Summary("Displays a tag")]
[RequireUserPermission(GuildPermission.AttachFiles)]
public async Task GetTag(string Tag)
{
Expand Down
3 changes: 3 additions & 0 deletions Floofbot/Modules/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace Floofbot
public class Utilities : ModuleBase<SocketCommandContext>
{
[Command("ping")]
[Summary("Responds with the ping in milliseconds")]
public async Task Ping()
{
var sw = Stopwatch.StartNew();
Expand All @@ -25,6 +26,7 @@ public async Task Ping()
}

[Command("userinfo")]
[Summary("Displays information on a mentioned user. If no parameters are given, displays user's own information")]
[RequireContext(ContextType.Guild)]
public async Task UserInfo(IGuildUser usr = null)
{
Expand Down Expand Up @@ -57,6 +59,7 @@ public async Task UserInfo(IGuildUser usr = null)
}

[Command("avatar")]
[Summary("Displays a mentioned user's avatar. If no parameters are given, displays user's own avatar")]
[RequireContext(ContextType.Guild)]
public async Task Avatar([Remainder] IGuildUser user = null)
{
Expand Down

0 comments on commit 166f968

Please sign in to comment.