Skip to content

Instantly share code, notes, and snippets.

@skidvis
skidvis / purge.cs
Created September 2, 2020 22:30
Purge command
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DSharpPlus;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using DSharpPlus.Entities;
namespace SharkBot.Commands
{
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using SixLabors.Fonts;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Processing;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Drawing.Processing;
using System.Globalization;
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="DSharp" value="https://nuget.emzi0767.com/api/v3/index.json" />
</packageSources>
</configuration>
version: "3"
services:
bot:
build: .
image: mydiscordbot
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
COPY NuGet.Config ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
Verifying my Blockstack ID is secured with the address 1KSqPBcJz1d16q3sSvpunZj73aFS74WxGL https://explorer.blockstack.org/address/1KSqPBcJz1d16q3sSvpunZj73aFS74WxGL
Verifying that "skidvis.id" is my Blockstack ID. https://onename.com/skidvis
var guards = [];
guards.push(!true); //guard 0, always lies
guards.push(true); //guard 1, always true
var doors = [];
doors.push("certain doom"); //door 0, certain doom
doors.push("the castle"); //door 1, the castle
//Does door 0 lead to the castle?
var theTruth = (doors[0] == "the castle"); //false
<!DOCTYPE html>
<html>
<head>
<title>Hi mom</title>
<style type="text/css">
ul{
padding: 0;
width: 500px;
}
### Keybase proof
I hereby claim:
* I am skidvis on github.
* I am skidvis (https://keybase.io/skidvis) on keybase.
* I have a public key whose fingerprint is 4CA6 FEF2 BA09 E23E 438E 19CC BA20 7738 7421 B969
To claim this, I am signing this object: