Celebrate this year's holiday season in style with Christmas CSS!
Download the contents of the [CSS file] to your discord-custom.css
(this is generally in %localappdata%\Discord\app-version\resources
)
import aiohttp | |
import asyncio | |
import discord | |
import os | |
CHANNEL_ID = 381870553235193857 | |
class State: | |
def __init__(self, token): | |
self.discord = discord.http.HTTPClient() |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Discord; | |
using Discord.WebSocket; | |
// Change this namespace if desired | |
namespace foxboat.Services | |
{ | |
// This service requires that your bot is being run by a daemon that handles |
public class HelpModule : ModuleBase | |
{ | |
private readonly CommandService _commands; | |
private readonly IServiceProvider _map; | |
public HelpModule(IServiceProvider map, CommandService commands) | |
{ | |
_commands = commands; | |
_map = map; | |
} |
using System.Reflection; | |
using Discord; | |
namespace DiscordBot | |
{ | |
public class LogMutator | |
{ | |
private readonly FieldInfo _sevField; | |
public LogMutator() |
I hereby claim:
To claim this, I am signing this object:
public class UtilityModule : ModuleBase | |
{ | |
[Command("purge")] | |
[Alias("clean", "cleanup", "prune")] | |
[Summary("Cleans the bot's messages")] | |
[RequirePermission(ChannelPermission.ManageMessages)] | |
public async Task Clean( | |
[Summary("The optional number of messages to delete; defaults to 10")] int count = 10, | |
[Summary("The type of messages to delete - Self, Bot, or All")] DeleteType deleteType = DeleteType.Self, | |
[Summary("The strategy to delete messages - BulkDelete or Manual")] DeleteStrategy deleteStrategy = DeleteStrategy.BulkDelete) |
StringBuilder builder = new StringBuilder(); | |
var searchResult = _commands.Search(msg, argPos); | |
if (searchResult.IsSuccess) | |
{ | |
foreach (var cmd in searchResult.Commands) | |
{ | |
builder.Append($"**{cmd.Text}({string.Join(",", cmd.Parameters.Select(x => GetParamName(x)))})** "); | |
var preconditionResult = await cmd.CheckPreconditions(msg); | |
var parseResult = await cmd.Parse(msg, searchResult, preconditionResult); | |
if (parseResult.IsSuccess) |