.unstuck, added points, clearer descriptions, $$$ command
This commit is contained in:
@ -567,6 +567,14 @@ namespace NadekoBot.Modules {
|
||||
});
|
||||
});
|
||||
|
||||
cgb.CreateCommand(".unstuck")
|
||||
.Description("Clears the message queue. **OWNER ONLY**")
|
||||
.Do(async e => {
|
||||
if (e.User.Id != NadekoBot.OwnerID)
|
||||
return;
|
||||
await Task.Run(() => NadekoBot.client.MessageQueue.Clear());
|
||||
});
|
||||
|
||||
/*cgb.CreateCommand(".voicetext")
|
||||
.Description("Enabled or disabled voice to text channel connection. Only people in a certain voice channel will see ")
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
using Discord.Commands;
|
||||
using Discord.Modules;
|
||||
using NadekoBot.Extensions;
|
||||
using System.Linq;
|
||||
|
||||
namespace NadekoBot.Modules
|
||||
@ -32,6 +33,31 @@ namespace NadekoBot.Modules
|
||||
var members = role.Members.Where(u => u.Status == Discord.UserStatus.Online); // only online
|
||||
await e.Channel.SendMessage($"**Raffled user:** {members.ToArray()[new System.Random().Next(0, members.Count())].Name}");
|
||||
});
|
||||
/*
|
||||
cgb.CreateCommand("$$")
|
||||
.Description("Add moneyz")
|
||||
.Parameter("val", ParameterType.Required)
|
||||
.Do(e => {
|
||||
var arg = e.GetArg("val");
|
||||
var num = int.Parse(arg);
|
||||
Classes.DBHandler.Instance.InsertData(
|
||||
new Classes._DataModels.CurrencyTransaction {
|
||||
Value = num,
|
||||
Reason = "Money plz",
|
||||
UserId = (long)e.User.Id,
|
||||
});
|
||||
});
|
||||
*/
|
||||
cgb.CreateCommand("$$$")
|
||||
.Description("Check how many NadekoPoints you have.")
|
||||
.Do(async e => {
|
||||
var pts = Classes.DBHandler.Instance.GetStateByUserId((long)e.User.Id)?.Value ?? 0;
|
||||
string str = $"`You have {pts} NadekoPoints".SnPl((int)pts)+"`\n";
|
||||
for (int i = 0; i < pts; i++) {
|
||||
str += "🌸";
|
||||
}
|
||||
await e.Channel.SendMessage(str);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ namespace NadekoBot.Modules {
|
||||
|
||||
cgb.CreateCommand("p")
|
||||
.Alias("pause")
|
||||
.Description("Pauses the song")
|
||||
.Description("Pauses or Unpauses the song")
|
||||
.Do(async e => {
|
||||
if (musicPlayers.ContainsKey(e.Server) == false) return;
|
||||
if (musicPlayers[e.Server].TogglePause())
|
||||
|
Reference in New Issue
Block a user