Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊
The day we have world peace is the day I will finish a project.

Kanin Kanin

🦊
The day we have world peace is the day I will finish a project.
View GitHub Profile
View points.py
import asyncio
import re
from datetime import datetime, timedelta
import discord
from discord.ext import commands
from bot import Bot
from utils import checks
from utils.ctx import Context
View birthdays.py
from datetime import datetime, timezone
import discord
from discord import Option, OptionChoice
from discord.ext import commands, tasks
from bot import Bot
month_choices = [
OptionChoice(name="January", value=1),
View birthdays.py
@tasks.loop(hours=1)
async def birthday_handler(self): # sourcery no-metrics
now = datetime.utcnow()
if self.day != now.day:
self.day = now.day
self.first = True
data = await self.bot.pool.fetch(
"SELECT * FROM birthdays WHERE extract(month from birthday) = $1 AND extract(day from birthday) = $2",
View Highlight max enchants
"enchantColours": [
"(Aqua Affinity|Flame|Piercing|Rainbow|Replenish|Silk Touch|Smelting Touch|Telekinesis|True Protection):\u003d:1:6",
"(Fire Aspect|Frost Walker|Knockback|Punch):\u003d:2:6",
"(Depth Strider|Fortune|Impaling|Respiration|Sugar Rush|Thorns):\u003d:3:6",
"(Chance|Experience|Snipe):\u003d:4:6",
"(Aiming|Big Brain|Blessing|Chance|Counter-Strike|Delicate|Dragon Hunter|Efficiency|First Strike|Life Steal|Looting|Overload|Rejuvenate|Respite|Scavenger|Smarty Pants|Syphon|Triple-Strike|Turbo-(Cacti|Cane|Carrot|Coco|Melon|Mushrooms|Potato|Pumpkin|Warts|Wheat)|Vicious):\u003d:5:6",
"(Angler|Caster|Cleave|Cubism|Dragon Tracer|Execute|Frail|Harvesting|Lethality|Luck of the Sea|Lure|Magnet|Prosecute|Spiked Hook|Thunderbolt|Thunderlord|Vampirism|Venomous):\u003d:6:6",
"Efficiency:\u003d:6:6",
"(Bane of Arthropods|Blast Protection|Critical|Ender Slayer|Fire Protection|Giant Killer|Growth|Luck|Power|Projectile Protection|Protection|Sharpness|Smite|Titan Kill
@Kanin
Kanin / keybase.md
Last active Sep 9, 2020
Gist for Keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am Kanin on github.
  • I am kanin (https://keybase.io/kanin) on keybase.
  • I have a public key whose fingerprint is 2B8D 0B2D 37E4 B57A DE05 317E 136F E8EB 26D2 CA71

To claim this, I am signing this object: