Skip to content

Instantly share code, notes, and snippets.

package com.justmaffie.spigot.premiumpunishments;
import com.justmaffie.spigot.premiumpunishments.data.storage.PunishmentQuery;
import org.bukkit.OfflinePlayer;
public interface PremiumPunishmentsApi {
/**
* Return a new query class to filter punishments
*
* @return The new query
@jorivanee
jorivanee / keybase.md
Created October 31, 2017 07:57
keybase.md

Keybase proof

I hereby claim:

  • I am justmaffie on github.
  • I am justmaffie (https://keybase.io/justmaffie) on keybase.
  • I have a public key ASDT3a_UoIJot790XwwQJcDvJYrOrX1l9nej_5KhRfuQ8go

To claim this, I am signing this object:

def on_message(self, message):
crashChar = "ौौौौ"
if crashChar in message.content:
try:
await bot.delete_message(message)
await bot.send_message(message.channel, "**I've delete a message posted by {} because it contained characters which crashes discord. I've also banned him.**".format(message.author.name + "#" + message.author.discriminator + "(ID: " + message.author.id + ")"))
await message.server.ban(message.author, "Causing discord to crash because of weird characters.")
except:
pass