Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- from discord.ext.commands import Bot
- from discord.ext import commands
- import asyncio
- import time
- from random import *
- Client = discord.Client()
- client = commands.Bot(command_prefix = "?")
- advert_channel = "556807878858637351"
- us_comms = "556806951363805185"
- rus_comms = "556806998042083339"
- city = "557376613340413954"
- hospital = "557376940466503694"
- railroad = "557377050395148298"
- highway = "557377131387289605"
- stadium = "557377512439545856"
- metro = "557377678861271041"
- slums = "557377773518192711"
- @client.event
- async def on_ready():
- print("Bot is online!")
- @client.event
- async def on_message(message):
- if message.content.lower().startswith("?occupation"):
- userID = message.author.id
- 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]:
- rand = randint(0, 6)
- if rand == 0:
- await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, city))
- elif rand == 1:
- await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, hospital))
- elif rand == 2:
- await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, railroad))
- elif rand == 3:
- await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, highway))
- elif rand == 4:
- await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, stadium))
- elif rand == 5:
- await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, metro))
- elif rand == 6:
- await client.send_message(client.get_channel(advert_channel), "<@%s> has called an occupation! The occupation will be held in <#%s>!" % (userID, slums))
- else:
- await client.send_message(message.channel, "<@%s> YOU ARE NOT OF RANK!!!!")
- if message.content.lower().startswith("?optional-mission"):
- userID = message.author.id
- 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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement