Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cacobot.base as base
- import discord, random, json, time, traceback
- bees = [
- "According to all known laws of aviation, there is no way a bee should be able to fly.",
- "Its wings are too small to get its fat little body off the ground.",
- "The bee, of course, flies anyway because bees don't care what humans think is impossible.",
- "Yellow, black. Yellow, black. Yellow, black. Yellow, black.",
- "Ooh, black and yellow! Let's shake it up a little.",
- "Barry! Breakfast is ready!"
- ]
- beemoviescript = 0
- try:
- with open('configs/bms.txt') as z:
- beemoviescript = int(z.read())
- except FileNotFoundError:
- with open('configs/bms.txt', 'w') as z:
- z.write('0')
- # cut to down when you increase beemoviescript by 1
- beemoviescript += 1
- with open('configs/bms.txt', 'w') as z:
- z.write(beemoviescript)
- @base.cacofunc
- def beemovie(message, client, *args, **kwargs):
- '''
- **}beemovie**
- Spits out a line from the Bee movie script.
- It will progress a line every time the command is used.
- '''
- if beemoviescript < len(bees):
- print("{}".format(bees[beemoviescript]))
- beemoviescript = beemoviescript + 1
- else:
- beemoviescript = 0
Advertisement
Add Comment
Please, Sign In to add comment