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
423-279-3200 | |
440-564-7014 | |
845-677-7300 | |
904-266-4468 | |
315-393-1555 | |
918-423-5858 | |
440-293-4555 | |
701-577-1212 | |
765-584-6891 | |
863-291-5200 |
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
Complete command list of NotSoBot <439205512425504771>: | |
Owner: NotSoSuper <296044494812479498> | |
Prefix: . | |
* = Not Required | |
^ = Bot Owner Only | |
^^ = Server Admin Only | |
"/'s" in commands show aliases for the command (Ex: ".reverse/r <text>" Command can be run with .reverse or .r) | |
<max_messages> = The number of messages to search through | |
<image> = The image URL, @discord_user, the users name, discord/custom emoji, or, nothing inputted which will search through 25 messages for embeds or attachments | |
<image-face> = Image requires a HUMAN FACE to be included |
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
423-279-3200 | |
440-564-7014 | |
845-677-7300 | |
904-266-4468 | |
315-393-1555 | |
918-423-5858 | |
440-293-4555 | |
701-577-1212 | |
765-584-6891 | |
863-291-5200 |
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
local function getMyself(serverConnectionHandlerID) | |
-- Get Self ID | |
local myClientID, error = ts3.getClientID(serverConnectionHandlerID) | |
if error ~= ts3errors.ERROR_ok then | |
print("Error getting own client ID: " .. error) | |
return | |
end | |
if myClientID == 0 then | |
ts3.printMessageToCurrentTab("Not connected") | |
return |
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
image_mimes = ['image/png', 'image/pjpeg', 'image/jpeg', 'image/x-icon'] | |
async def isimage(url:str): | |
try: | |
with aiohttp.ClientSession() as session: | |
with aiohttp.Timeout(30): | |
async with session.get(url) as resp: | |
if resp.status == 200: | |
mime = resp.headers.get('Content-type', '').lower() | |
if any([mime == x for x in image_mimes]): | |
return True |
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
def do_gmagik(self, ctx, gif): | |
try: | |
try: | |
gif = PIL.Image.open(gif) | |
except: | |
return '\N{WARNING SIGN} Invalid Gif.' | |
if gif.size >= (3000, 3000): | |
return '\N{WARNING SIGN} `GIF resolution exceeds maximum >= (3000, 3000).`' | |
elif gif.n_frames > 150 and ctx.message.author.id != self.bot.owner.id: | |
return "\N{WARNING SIGN} `GIF has too many frames (> 150 Frames).`" |
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 asyncio | |
import discord | |
import aiohttp | |
import re | |
import aiohttp | |
import random | |
import sys | |
import os | |
import aiosocks | |
import time |
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
version: '2.1' | |
services: | |
prometheus: | |
image: prom/prometheus:v2.5.0 | |
container_name: prometheus | |
volumes: | |
- ./prometheus/:/etc/prometheus/ | |
- ./data/prometheus/:/prometheus/ |
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 os | |
cows = os.listdir('/usr/share/cowsay/cows') | |
base = r""" | |
@commands.command(aliases=['{0}']) | |
async def {1}say(self, *, txt:str): | |
msg = await self.do_cowsay(txt, '{0}') | |
await self.bot.say("```\n"+msg[:1992]+"```") | |
""" |
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
@commands.command(pass_context=True) | |
@commands.cooldown(2, 5, commands.BucketType.server) | |
@checks.bot_has_perm(add_reactions=True) | |
async def react(self, ctx, *, txt:str): | |
msg = None | |
channel = ctx.message.channel | |
for c in ctx.message.channel_mentions: | |
channel = c | |
txt = txt.replace(c.mention, '') | |
if not channel.is_private: |
NewerOlder