a guest Aug 25th, 2019 182 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import discord
  2. import random
  3. import datetime
  5. TOKEN = 'NjE0MDk5OTQ4MjkxNzUxOTQ1.XV6jTw.J5Qyscs_rkJv8fyrRVjHaT2Qqm8'
  6. FORMAT = '%d/%m/%y %H:%M:%S'
  7. END_DATE = datetime.datetime.strptime('27/08/19 00:00:00', FORMAT)
  9. client = discord.Client()
  11. def randomEnding():
  12.     endings = [
  13.     'you can wear your adult diaper.',
  14.     'you can slay some Alliance scum.',
  15.     'you can get your fishing skill to 300.',
  16.     'your family loses you forever.',
  17.     "LOK'TAR OGAR!!",
  18.     "you can find Mankrik's wife.",
  19.     'you can stand in the fire.',
  20.     'you can forget to loot the Core Hound.']
  22.     return random.choice(endings)
  24. def randomTrivia():
  25.     trivia = [
  26.     'It took only 150 developers to create 30,000 items, 5300 NPCs and 7600 Quests.',
  27.     'The server side of WoW consists of 20,000 computers, 1.3 petabytes of storage, 75,000 CPU cores, 5.5 million lines of code and 2 million words of text.',
  28.     'Players complete 16.6 million quests and participate in 3.5 million auctions each day.',
  29.     'The second expansion, Wrath of the Lich King, sold 1933 copies a minute for a total of 2.8 million by the end of the first day of release, making it the fastest selling PC game of all time.',
  30.     'With a peak of 12 million subscriptions in October 2010 and Blizzard’s final report of 5.5 million subscriptions in October 2015, World of Warcraft remains the world’s most-subscribed MMORPG.',
  31.     'In planning stages of WotLK development, they had 3 options for a hero class: Necromancer, Runemaster and Death Knight. In the end, they “combined” all three into one, giving DK’s Necromancer niches such as diseases and corpse exploding, and Runemaster niches, their rune resource system. Which is why we will never (99,94%) see those two classes in game.',
  32.     'The human race is the most played race in game.',
  33.     'It is said that the Alliance is still the preferred faction commanding a little over half the player base. That doesn’t change the facts that they suck.',
  34.     'When the Draenei where originally introduced in Warcraft 3 with Akama, they all looked like the lost ones. This was also the original plan as Blizzard originally didnt intend to connect them with the eredar(that also existed in warcraft 3). So up until TBC, The draenei was a seperate race from the Eredars, and they looked like the lost ones rather than the broken or the normal Draenei.',
  35.     'In one of the early versions of the game, both Hunters and Priests had melee talent trees. Hunters who wished to melee would choose the Survival tree. Priests would choose the Discipline tree, which explains why Inner Fire increased attack power.',
  36.     'In January 2014, Blizzard announced that more than 100 million accounts had been created over the game’s lifetime.',
  37.     'Wyverns in World of Warcraft are not just animals. They are sentient beings that willingly joined the Horde as a “sixth” race. They also speak some odd dialect of Taurahe!',
  38.     'Since World of Warcraft launched, more than 100 million unique accounts have been created. That’s twice as many accounts as people living in South Korea, or as many as the populations of Germany, Belarus and Sweden combined!',
  39.     'World of Warcraft is played across 244 countries and territories around the globe, including places like the Bahamas, Antarctica, Tokelau and Christmas island.',
  40.     'Leeroyyyyyy Jenkiiiiiiiiiiiiiiiiiiiiiins.',
  41.     'Considered to be (by those that know of it) the rarest mount in game. The Fluorescent Green Mechanostrider is one of a kind. The story behind this mount starts out like this; an unfortunate Gnome deleted his Mechanostrider. Upon asking a GM to replace it, he was erroneously awarded this mount instead. This means this mount is the only one in the world and cannot be obtained by any other player, making this the rarest mount in game and our Gnome friend a very lucky little fellow.',
  42.     'Before TBC, Shaman were Horde only and Paladins were Alliance only. The Burning Crusade expansion changed all of that. However, during the transition period, Shaman loot started dropping for Alliance players and Paladin loot started dropping for Horde; before either class was playable by that faction. This loot was utterly useless and a total waste.',
  43.     'The rarest pet is the tiny red carp.',
  44.     'The most common pet is the squirrel.',
  45.     'The highest noted World of Warcraft account trade was for £5000 (€7000, US$9,900) in early September 2007.',
  46.     'The game has been used to advertise unrelated products, such as Toyota trucks.']
  48.     return random.choice(trivia)
  50. def helpMsg():
  51.     return '!countdown, !hello, !help, !trivia, !realm, !bestinslot'
  53. def getBis():
  54.     return ''
  56. @client.event
  57. async def on_message(message):
  58.     # we do not want the bot to reply to itself
  59.     if == client.user:
  60.         return
  62.     if message.content.startswith('!bestinslot'):
  63.         await client.send_message(, getBis())
  65.     if message.content.startswith('!realm'):
  66.         await client.send_message(, 'Firemaw (PVP) Horde')
  68.     if message.content.startswith('!help'):
  69.         await client.send_message(, helpMsg())
  71.     if message.content.startswith('!hello'):
  72.         msg = 'Hej {}'.format(message)
  73.         await client.send_message(, msg)
  75.     if message.content.startswith('!countdown'):
  76.         now = datetime.datetime.strptime(, FORMAT)
  77.         diff = END_DATE - now
  78.         msg = '{} until {}'.format(diff, randomEnding())
  79.         await client.send_message(, msg)
  81.     if message.content.startswith('!trivia'):
  82.         await client.send_message(, randomTrivia())
  84. @client.event
  85. async def on_ready():
  86.     print('Logged in as')
  87.     print(
  88.     print(
  89.     print('------')
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