Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 #2

Closed
wants to merge 82 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
fd46b67
Small Update
Wizkiller96 May 13, 2016
3c277f6
Update README.md
Wizkiller96 May 13, 2016
ec44add
Update README.md
Wizkiller96 May 13, 2016
a7637e6
Created .travis.yml
Wizkiller96 May 13, 2016
749a126
Small Update
Wizkiller96 May 14, 2016
b014138
Small Update
Wizkiller96 May 14, 2016
5c27ad4
Merge branch 'master' of https://gitlab.com/Wizkiller96/WizBot-Updated
Wizkiller96 May 14, 2016
053c0a8
Update Readme
Wizkiller96 May 14, 2016
91516b7
Removed some files
Wizkiller96 May 14, 2016
34cae07
Updated Console Title
Wizkiller96 May 14, 2016
d5c4f88
Updated .gitignore
Wizkiller96 May 14, 2016
869ec0f
Removed donation text.
Wizkiller96 May 14, 2016
bf8ccdb
Minor Changes
Wizkiller96 May 14, 2016
2bb3f1b
Updated .gitignore
Wizkiller96 May 14, 2016
b9f095b
Minor Change
Wizkiller96 May 14, 2016
fbd78f9
Minor Change
Wizkiller96 May 14, 2016
0d2b9be
Merge branch 'master' of https://github.com/Wizkiller96/WizBot-Update…
Wizkiller96 May 14, 2016
486cc5a
Minor Update
Wizkiller96 May 14, 2016
795ba50
Merge branch 'master' of https://github.com/Wizkiller96/WizBot-Update…
Wizkiller96 May 14, 2016
442fc34
.whoplays command added
Wizkiller96 May 15, 2016
0e3cba4
Added nick and last online to .uinfo (will only work if those fields …
Wizkiller96 May 16, 2016
4643b26
Updated .gitignore
Wizkiller96 May 16, 2016
dcccd69
Updated .gitignore
Wizkiller96 May 16, 2016
5c6a8fe
My first stack exception trace erasing worst practice
Wizkiller96 May 19, 2016
f397a43
Updated .gitignore
Wizkiller96 May 19, 2016
3ff2fb4
Fixing Discord.net
Wizkiller96 May 19, 2016
64a273f
Fixed some files
Wizkiller96 May 19, 2016
65a769c
Fixing .gitmodules
Wizkiller96 May 19, 2016
bba108c
Readded .gitmodules
Wizkiller96 May 19, 2016
0b8348a
Update .gitmodules
Wizkiller96 May 19, 2016
7578832
Updated .gitignore
Wizkiller96 May 19, 2016
c282397
Merge branch 'master' of https://github.com/Wizkiller96/WizBot-Update…
Wizkiller96 May 19, 2016
28ab17e
Removed discord.net
Wizkiller96 May 19, 2016
b459be0
Readded discord.net
Wizkiller96 May 19, 2016
7ca32ff
Update .gitmodules
Wizkiller96 May 19, 2016
09fb2b6
Create LinuxSetup.md
Wizkiller96 May 19, 2016
35f21ef
Preserve inner exception
Wizkiller96 May 19, 2016
42d3994
Fixed some typos
Wizkiller96 May 19, 2016
406e032
Updated commandlist
Wizkiller96 May 19, 2016
3e36a0f
log command no longer mentions
Wizkiller96 May 19, 2016
2985ee5
;cm defaults to current channel
Wizkiller96 May 20, 2016
bd78a39
Updates
Wizkiller96 May 20, 2016
b0098a8
acm as well
Wizkiller96 May 20, 2016
775607f
wowiejokes
Wizkiller96 May 20, 2016
f22ea48
wowie2
Wizkiller96 May 20, 2016
0cafe0e
wowie-3
Wizkiller96 May 20, 2016
f68bc28
wowie-4
Wizkiller96 May 20, 2016
b268550
fixed wowjoke
Wizkiller96 May 20, 2016
b35a559
Updates
Wizkiller96 May 20, 2016
8e2ce89
Added ..qdel, stop crying now
Wizkiller96 May 23, 2016
adfc0a6
Added alias
Wizkiller96 May 23, 2016
c704438
Fixed missing brackets
Wizkiller96 May 23, 2016
c2a75f3
awoken is rude
Wizkiller96 May 23, 2016
e097ecc
.whoplays no longer needs quotes for multiword games
Wizkiller96 May 23, 2016
70a5762
Updated Packages
Wizkiller96 May 23, 2016
78c538b
.inrole added
Wizkiller96 May 23, 2016
469d3f3
Updaated CustomReactionsCommands
Wizkiller96 May 23, 2016
1247e2b
Updated the .updates command
Wizkiller96 May 23, 2016
3be1a8f
Added usage example to linux interjections
Wizkiller96 May 23, 2016
be7d1f5
Updated commandlist
Wizkiller96 May 23, 2016
2ccd16c
Fixed spelling error
Wizkiller96 May 23, 2016
c13427c
Updated InfoCommands
Wizkiller96 May 23, 2016
618d6c1
added .repinv
Wizkiller96 May 25, 2016
daf4054
added .cleanv+t
Wizkiller96 May 25, 2016
80e7e83
if .iam is successfull it will delete command and confirmation after …
Wizkiller96 May 25, 2016
15fb3d6
Updated .gitmodules
Wizkiller96 May 26, 2016
706f05d
Updated discord.net
Wizkiller96 May 26, 2016
0b06f07
fixed typo, thx samvaio
Wizkiller96 May 26, 2016
38c61a9
Updated README
Wizkiller96 May 26, 2016
4d037ce
Manatee Update
Wizkiller96 May 29, 2016
06162e4
fixed cleanv+t crash
Wizkiller96 May 29, 2016
da6d5de
changed grass poke icon, fixed typelist
Wizkiller96 May 29, 2016
03133dd
Add Info for Debian 8 user
Wizkiller96 May 29, 2016
f80ad54
Updated ComprehensiveGuide
Wizkiller96 May 30, 2016
87c2aa5
Updated README
Wizkiller96 May 30, 2016
4c2a9f4
~ir error 400 should be more rare
Wizkiller96 May 30, 2016
eebec7b
ban is pruning for 7 days, fixed .whoplays
Wizkiller96 May 30, 2016
ba10dab
made my life much easier
Wizkiller96 May 30, 2016
51614c2
Updated WizBot.sln
Wizkiller96 May 30, 2016
a744abe
Update README.md
Wizkiller96 Dec 11, 2016
9e99448
Create 09.md
Wizkiller96 Dec 15, 2016
f7f0267
Merge pull request #1 from Wizkiller96/0.9
Wizkiller96 Dec 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
.inrole added
  • Loading branch information
Wizkiller96 committed May 23, 2016
commit 78c538b232f6b86f5312c84347a44950ea8dd260
31 changes: 31 additions & 0 deletions WizBot/Modules/Administration/AdministrationModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,37 @@ await Task.Run(async () =>
}).ConfigureAwait(false);
});

cgb.CreateCommand(Prefix + "inrole")
.Description("Lists every person from the provided role or roles (separated by a ',') on this server.")
.Parameter("roles", ParameterType.Unparsed)
.Do(async e =>
{
await Task.Run(async () =>
{
if (!e.User.ServerPermissions.MentionEveryone) return;
var arg = e.GetArg("roles").Split(',').Select(r => r.Trim());
string send = $"`Here is a list of users in a specfic role:`";
foreach (var roleStr in arg.Where(str => !string.IsNullOrWhiteSpace(str)))
{
var role = e.Server.FindRoles(roleStr).FirstOrDefault();
if (role == null) continue;
send += $"\n`{role.Name}`\n";
send += string.Join(", ", role.Members.Select(r => "**" + r.Name + "**#" + r.Discriminator));
}

while (send.Length > 2000)
{
var curstr = send.Substring(0, 2000);
await
e.Channel.Send(curstr.Substring(0,
curstr.LastIndexOf(", ", StringComparison.Ordinal) + 1)).ConfigureAwait(false);
send = curstr.Substring(curstr.LastIndexOf(", ", StringComparison.Ordinal) + 1) +
send.Substring(2000);
}
await e.Channel.Send(send).ConfigureAwait(false);
}).ConfigureAwait(false);
});

cgb.CreateCommand(Prefix + "parsetosql")
.Description("Loads exported parsedata from /data/parsedata/ into sqlite database.")
.AddCheck(SimpleCheckers.OwnerOnly())
Expand Down