Skip to content

Instantly share code, notes, and snippets.

View r74tech's full-sized avatar
🎯
𝑏𝑒 π‘’π‘‘β„Žπ‘–π‘π‘Žπ‘™.

r74tech

🎯
𝑏𝑒 π‘’π‘‘β„Žπ‘–π‘π‘Žπ‘™.
  • 00:04 (UTC +09:00)
View GitHub Profile
@r74tech
r74tech / rot13.js
Last active December 8, 2021 07:52
let encryptee = "ζ—₯本θͺžEnglish"
//Rot13 Encode
function encode(encryptee) {
return encryptee.replace(/[A-Z]/g, function(c) {
var s = c.charCodeAt(0);
return String.fromCharCode(s < 78 ? s + 13 : s - 13);
}).replace(/[a-z]/g, function(c) {
var s = c.charCodeAt(0);
return String.fromCharCode(s < 110 ? s + 13 : s - 13);
}).replace(/[ぁ-γ‚–]/g, function(c) {
@r74tech
r74tech / poll.py
Created July 30, 2021 16:06
discord.pyでpollγ‚’γ‚γ‹γ‚Šγ‚„γ™γθ‘¨η€Ίγ—γ‚ˆγ†
import discord
from discord.ext import commands
class poll(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def poll(self, ctx, *args):