This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |