zephyr123

YanDev's server check

Apr 27th, 2020
1,297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.03 KB | None | 0 0
  1. # uncompyle6 version 3.6.4
  2. # Python bytecode 3.7 (3394)
  3. # Decompiled from: Python 2.7.17 (default, Apr 15 2020, 17:20:14)
  4. # [GCC 7.5.0]
  5. # Warning: this version has problems handling the Python 3 byte type in contants properly.
  6.  
  7. # Embedded file name: C:\Users\joelt\Desktop\aoi-bot - Copy\utils\checks.py
  8. # Size of source mod 2**32: 1954 bytes
  9. import discord
  10. disallow_channels = [
  11.  411363271568785420L, 606549827077144589L, 575234510682193930L,
  12.  602454748406480916L, 508668937035186186L, 438529996223545344L,
  13.  439016971749556234L, 439017534709170187L, 439019287370530817L,
  14.  439149789058433024L, 653906879357124609L]
  15. twitch = [
  16.  411363271568785420L, 606549827077144589L, 575234510682193930L,
  17.  602454748406480916L, 508668937035186186L]
  18. user_blacklist = []
  19. guild_blacklist = []
  20. owners_ids = [
  21.  396241937658675206L, 135161245941628928L]
  22.  
  23. def is_joel(ctx):
  24.     return ctx.author.id == 396241937658675206L
  25.  
  26.  
  27. def manage_message_owner(ctx):
  28.     if not ctx.author.guild_permissions.manage_messages or ctx.author.id == 396241937658675206L:
  29.         return ctx.author.guild_permissions.manage_messages or ctx.author.id == 396241937658675206L
  30.  
  31.  
  32. def allowed_ids(ctx):
  33.     return ctx.author.id in (199004056310513674, 396241937658675206, 104632038425903104,
  34.                              135161245941628928)
  35.  
  36.  
  37. async def owners(ctx):
  38.     if ctx.author.id in owners_ids:
  39.         return ctx.author.id in owners_ids
  40.     await ctx.send(f"Sorry, {ctx.author.name}. You're not allowed to use that command.")
  41.     return
  42.  
  43.  
  44. def _owners(ctx):
  45.     return ctx.author.id in owners_ids
  46.  
  47.  
  48. async def disabled_channels(ctx):
  49.     if ctx.channel.id not in disallow_channels:
  50.         return ctx.channel.id not in disallow_channels
  51.     await ctx.send('Sorry, this command cannot be used here.', delete_after=10)
  52.     return
  53.  
  54.  
  55. status_list = [
  56.  discord.Activity(name='myself being pretty around the school', type=3),
  57.  discord.Activity(name='Ayano act suspicously', type=3),
  58.  discord.Streaming(name='twitch.tv/YandereDev', url='https://twitch.tv/YandereDev')]
Advertisement
Add Comment
Please, Sign In to add comment