SHARE
TWEET

Untitled

a guest Mar 24th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import discord
  2. from discord.ext.commands import Bot
  3. from discord.ext import commands
  4. import asyncio
  5. import time
  6. from random import *
  7.  
  8. Client = discord.Client()
  9. client = commands.Bot(command_prefix = "?")
  10.  
  11. advert_channel = "556807878858637351"
  12. us_comms = "556806951363805185"
  13. rus_comms = "556806998042083339"
  14.  
  15. city = "557376613340413954"
  16. hospital = "557376940466503694"
  17. railroad = "557377050395148298"
  18. highway = "557377131387289605"
  19. stadium = "557377512439545856"
  20. metro = "557377678861271041"
  21. slums = "557377773518192711"
  22.  
  23. @client.event
  24. async def on_ready():
  25.     print("Bot is online!")
  26.  
  27. @client.event
  28. async def on_message(message):
  29.     if message.content.lower().startswith("?occupation"):
  30.         userID = message.author.id
  31.         if "556735073311784971" in [role.id for role in message.author.roles] or "556732844601376769" in [role.id for role in message.author.roles] or "556756456406253588" in [role.id for role in message.author.roles] or "556755817085534208" in [role.id for role in message.author.roles] or "556762571982635009" in [role.id for role in message.author.roles] or "556763067195588609" in [role.id for role in message.author.roles] or "556763398118047754" in [role.id for role in message.author.roles] or "556763665303339008" in [role.id for role in message.author.roles] or "556770792365490186" in [role.id for role in message.author.roles] or "556803767589142529" in [role.id for role in message.author.roles]:
  32.             rand = randint(0, 6)
  33.             if rand == 0:
  34.                 await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, city))
  35.             elif rand == 1:
  36.                 await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, hospital))
  37.             elif rand == 2:
  38.                 await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, railroad))
  39.             elif rand == 3:
  40.                 await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, highway))
  41.             elif rand == 4:
  42.                 await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, stadium))
  43.             elif rand == 5:
  44.                 await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, metro))
  45.             elif rand == 6:
  46.                 await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, slums))
  47.         else:
  48.             await client.send_message(message.channel, "<@%s> YOU ARE NOT OF RANK!!!!")
  49.     if message.content.lower().startswith("?optional-mission"):
  50.         userID = message.author.id
  51.         if "556730830551121924" in [role.id for role in message.author.roles] or "556731283787612161" in [role.id for role in message.author.roles] or "556731571684638720" in [role.id for role in message.author.roles] or "556731985750523934" in [role.id for role in message.author.roles] or "556732332963266560" in [role.id for role in message.author.roles] or "556732604238528545" in [role.id for role in message.author.roles] or "556732844601376769" in [role.id for role in message.author.roles] or "556735073311784971" in [role.id for role in message.author.roles] or "556754314434052096" in [role.id for role in message.author.roles] or "556754380498665492" in [role.id for role in message.author.roles] or "556755817085534208" in [role.id for role in message.author.roles] or "556756456406253588" in [role.id for role in message.author.roles]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top