Created
August 7, 2018 15:34
-
-
Save ab-gh/f4c48c546c4d1aa5cf1488e1fb3bfd0f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
__authors__ = 'electric-blue-green' | |
__license__ = 'MIT' | |
import discord | |
from discord.ext import commands | |
import sqlite3 | |
import os | |
import subprocess | |
import time | |
class deskcog: | |
def __init__(self, bot): | |
self.bot = bot | |
@commands.command() | |
async def a(ctx): | |
response = "Answer to A, " + ctx.author.mention | |
resp = await ctx.send(response) | |
await ctx.message.delete() | |
time.sleep(15) | |
await resp.delete() | |
@commands.command() | |
async def x(ctx): | |
rolegrant = discord.utils.get(ctx.guild.roles, id=476138923861606400) | |
await ctx.author.add_roles(rolegrant) | |
await ctx.message.delete() | |
@commands.command() | |
async def sendcommandsigkill(ctx): | |
if int(ctx.author.id) == 173498062260404225: | |
content = str(ctx.message.content) | |
subprocess.Popen.kill() | |
embed = discord.Embed(colour=discord.Colour(0x4eb2fa), | |
description="sigkill") | |
embed.set_author(name="sigkill", | |
embed.set_footer(text="a bot by ash#0001") | |
def setup(bot): | |
bot.add_cog(deskcog) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment