Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Add Images + Update Settings.txt to allow dc token
Browse files Browse the repository at this point in the history
  • Loading branch information
AwesomeParley committed May 12, 2023
1 parent 0f9ba57 commit d64af1e
Show file tree
Hide file tree
Showing 427 changed files with 13 additions and 6 deletions.
18 changes: 12 additions & 6 deletions BlueyBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
import random
import os
import configparser
from sys import exit

# Check if the settings file exists, if not create it
def create_default_settings():
config = configparser.ConfigParser()
config['DEFAULT'] = {
'Token': 'Insert Bot Token Here',
'Seconds to respond': '120',
'Daily': 'False',
'Command': '!guess',
Expand All @@ -20,6 +22,7 @@ def read_settings():
config = configparser.ConfigParser()
config.read('settings.txt')
settings = {
'Token': config.get('DEFAULT', 'Token'),
'Seconds to respond': config.getint('DEFAULT', 'Seconds to respond'),
'Daily': config.getboolean('DEFAULT', 'Daily'),
'Command': config.get('DEFAULT', 'Command'),
Expand All @@ -30,16 +33,19 @@ def read_settings():
if not os.path.exists('settings.txt'):
create_default_settings()

print(discord.__version__)
intents = discord.Intents.all()
client = discord.Client(intents=intents)

settings = read_settings()
token = settings['Token']
seconds_to_respond = settings['Seconds to respond']
daily = settings['Daily'] #To Be Implemented
command = settings['Command']
spoilers = settings['Image spoilers'] #To Be Implemented

if(token == 'Insert Bot Token Here'):
print("change \"Insert Bot Token Here\" in setting.txt to your discord token before running!")
exit()
else:
intents = discord.Intents.all()
client = discord.Client(intents=intents)

episodes_file = "episodes.txt"
max_attempts = 5 #Only change if you want to use your own images, and you have a different number of them.
Expand All @@ -59,7 +65,7 @@ async def on_message(message):
y = 1
while y <= max_attempts:
episode = get_episode(x)
filename = f'{x}_{y}.jpg' # Format the filename string with x and y
filename = f'images\\{x}_{y}.jpg' # Format the filename string with x and y
with open(filename, 'rb') as f:
file = discord.File(f, filename='nice_try.jpg') # Named "nice_try.jpg" so that the smart people get trolled.
await message.reply(f'You are on guess {y}. Guess the episode.', file=file)
Expand Down Expand Up @@ -87,4 +93,4 @@ def get_episode(x):
episode = episodes[x-1] if len(episodes) >= x else None
return episode.strip() if episode else None

client.run('Insert Bot Token Here')
client.run(token)
Binary file added images/10_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/10_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/10_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/10_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/10_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/11_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/11_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/11_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/11_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/11_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/12_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/12_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/12_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/12_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/12_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/13_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/13_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/13_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/13_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/13_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/14_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/14_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/14_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/14_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/14_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/15_1.jpg
Binary file added images/15_2.jpg
Binary file added images/15_3.jpg
Binary file added images/15_4.jpg
Binary file added images/15_5.jpg
Binary file added images/16_1.jpg
Binary file added images/16_2.jpg
Binary file added images/16_3.jpg
Binary file added images/16_4.jpg
Binary file added images/16_5.jpg
Binary file added images/17_1.jpg
Binary file added images/17_2.jpg
Binary file added images/17_3.jpg
Binary file added images/17_4.jpg
Binary file added images/17_5.jpg
Binary file added images/18_1.jpg
Binary file added images/18_2.jpg
Binary file added images/18_3.jpg
Binary file added images/18_4.jpg
Binary file added images/18_5.jpg
Binary file added images/19_1.jpg
Binary file added images/19_2.jpg
Binary file added images/19_3.jpg
Binary file added images/19_4.jpg
Binary file added images/19_5.jpg
Binary file added images/1_1.jpg
Binary file added images/1_2.jpg
Binary file added images/1_3.jpg
Binary file added images/1_4.jpg
Binary file added images/1_5.jpg
Binary file added images/20_1.jpg
Binary file added images/20_2.jpg
Binary file added images/20_3.jpg
Binary file added images/20_4.jpg
Binary file added images/20_5.jpg
Binary file added images/21_1.jpg
Binary file added images/21_2.jpg
Binary file added images/21_3.jpg
Binary file added images/21_4.jpg
Binary file added images/21_5.jpg
Binary file added images/22_1.jpg
Binary file added images/22_2.jpg
Binary file added images/22_3.jpg
Binary file added images/22_4.jpg
Binary file added images/22_5.jpg
Binary file added images/23_1.jpg
Binary file added images/23_2.jpg
Binary file added images/23_3.jpg
Binary file added images/23_4.jpg
Binary file added images/23_5.jpg
Binary file added images/24_1.jpg
Binary file added images/24_2.jpg
Binary file added images/24_3.jpg
Binary file added images/24_4.jpg
Binary file added images/24_5.jpg
Binary file added images/25_1.jpg
Binary file added images/25_2.jpg
Binary file added images/25_3.jpg
Binary file added images/25_4.jpg
Binary file added images/25_5.jpg
Binary file added images/26_1.jpg
Binary file added images/26_2.jpg
Binary file added images/26_3.jpg
Binary file added images/26_4.jpg
Binary file added images/26_5.jpg
Binary file added images/27_1.jpg
Binary file added images/27_2.jpg
Binary file added images/27_3.jpg
Binary file added images/27_4.jpg
Binary file added images/27_5.jpg
Binary file added images/28_1.jpg
Binary file added images/28_2.jpg
Binary file added images/28_3.jpg
Binary file added images/28_4.jpg
Binary file added images/28_5.jpg
Binary file added images/29_1.jpg
Binary file added images/29_2.jpg
Binary file added images/29_3.jpg
Binary file added images/29_4.jpg
Binary file added images/29_5.jpg
Binary file added images/2_1.jpg
Binary file added images/2_2.jpg
Binary file added images/2_3.jpg
Binary file added images/2_4.jpg
Binary file added images/2_5.jpg
Binary file added images/30_1.jpg
Binary file added images/30_2.jpg
Binary file added images/30_3.jpg
Binary file added images/30_4.jpg
Binary file added images/30_5.jpg
Binary file added images/31_1.jpg
Binary file added images/31_2.jpg
Binary file added images/31_3.jpg
Binary file added images/31_4.jpg
Binary file added images/31_5.jpg
Binary file added images/32_1.jpg
Binary file added images/32_2.jpg
Binary file added images/32_3.jpg
Binary file added images/32_4.jpg
Binary file added images/32_5.jpg
Binary file added images/33_1.jpg
Binary file added images/33_2.jpg
Binary file added images/33_3.jpg
Binary file added images/33_4.jpg
Binary file added images/33_5.jpg
Binary file added images/34_1.jpg
Binary file added images/34_2.jpg
Binary file added images/34_3.jpg
Binary file added images/34_4.jpg
Binary file added images/34_5.jpg
Binary file added images/35_1.jpg
Binary file added images/35_2.jpg
Binary file added images/35_3.jpg
Binary file added images/35_4.jpg
Binary file added images/35_5.jpg
Binary file added images/36_1.jpg
Binary file added images/36_2.jpg
Binary file added images/36_3.jpg
Binary file added images/36_4.jpg
Binary file added images/36_5.jpg
Binary file added images/37_1.jpg
Binary file added images/37_2.jpg
Binary file added images/37_3.jpg
Binary file added images/37_4.jpg
Binary file added images/37_5.jpg
Binary file added images/38_1.jpg
Binary file added images/38_2.jpg
Binary file added images/38_3.jpg
Binary file added images/38_4.jpg
Binary file added images/38_5.jpg
Binary file added images/39_1.jpg
Binary file added images/39_2.jpg
Binary file added images/39_3.jpg
Binary file added images/39_4.jpg
Binary file added images/39_5.jpg
Binary file added images/3_1.jpg
Binary file added images/3_2.jpg
Binary file added images/3_3.jpg
Binary file added images/3_4.jpg
Binary file added images/3_5.jpg
Binary file added images/40_1.jpg
Binary file added images/40_2.jpg
Binary file added images/40_3.jpg
Binary file added images/40_4.jpg
Binary file added images/40_5.jpg
Binary file added images/41_1.jpg
Binary file added images/41_2.jpg
Binary file added images/41_3.jpg
Binary file added images/41_4.jpg
Binary file added images/41_5.jpg
Binary file added images/42_1.jpg
Binary file added images/42_2.jpg
Binary file added images/42_3.jpg
Binary file added images/42_4.jpg
Binary file added images/42_5.jpg
Binary file added images/43_1.jpg
Binary file added images/43_2.jpg
Binary file added images/43_3.jpg
Binary file added images/43_4.jpg
Binary file added images/43_5.jpg
Binary file added images/46_1.jpg
Binary file added images/46_2.jpg
Binary file added images/46_3.jpg
Binary file added images/46_4.jpg
Binary file added images/46_5.jpg
Binary file added images/47_1.jpg
Binary file added images/47_2.jpg
Binary file added images/47_3.jpg
Binary file added images/47_4.jpg
Binary file added images/47_5.jpg
Binary file added images/48_1.jpg
Binary file added images/48_2.jpg
Binary file added images/48_3.jpg
Binary file added images/48_4.jpg
Binary file added images/48_5.jpg
Binary file added images/49_1.jpg
Binary file added images/49_2.jpg
Binary file added images/49_3.jpg
Binary file added images/49_4.jpg
Binary file added images/49_5.jpg
Binary file added images/4_1.jpg
Binary file added images/4_2.jpg
Binary file added images/4_3.jpg
Binary file added images/4_4.jpg
Binary file added images/4_5.jpg
Binary file added images/50_1.jpg
Binary file added images/50_2.jpg
Binary file added images/50_3.jpg
Binary file added images/50_4.jpg
Binary file added images/50_5.jpg
Binary file added images/51_1.jpg
Binary file added images/51_2.jpg
Binary file added images/51_3.jpg
Binary file added images/51_4.jpg
Binary file added images/51_5.jpg
Binary file added images/52_1.jpg
Binary file added images/52_2.jpg
Binary file added images/52_3.jpg
Binary file added images/52_4.jpg
Binary file added images/52_5.jpg
Binary file added images/53_1.jpg
Binary file added images/53_2.jpg
Binary file added images/53_3.jpg
Binary file added images/53_4.jpg
Binary file added images/53_5.jpg
Binary file added images/54_1.jpg
Binary file added images/54_2.jpg
Binary file added images/54_3.jpg
Binary file added images/54_4.jpg
Binary file added images/54_5.jpg
Binary file added images/55_1.jpg
Binary file added images/55_2.jpg
Binary file added images/55_3.jpg
Binary file added images/55_4.jpg
Binary file added images/55_5.jpg
Binary file added images/56_1.jpg
Binary file added images/56_2.jpg
Binary file added images/56_3.jpg
Binary file added images/56_4.jpg
Binary file added images/56_5.jpg
Binary file added images/57_1.jpg
Binary file added images/57_2.jpg
Binary file added images/57_3.jpg
Binary file added images/57_4.jpg
Binary file added images/57_5.jpg
Binary file added images/58_1.jpg
Binary file added images/58_2.jpg
Binary file added images/58_3.jpg
Binary file added images/58_4.jpg
Binary file added images/58_5.jpg
Binary file added images/59_1.jpg
Binary file added images/59_2.jpg
Binary file added images/59_3.jpg
Binary file added images/59_4.jpg
Binary file added images/59_5.jpg
Binary file added images/5_1.jpg
Binary file added images/5_2.jpg
Binary file added images/5_3.jpg
Binary file added images/5_4.jpg
Binary file added images/5_5.jpg
Binary file added images/60_1.jpg
Binary file added images/60_2.jpg
Binary file added images/60_3.jpg
Binary file added images/60_4.jpg
Binary file added images/60_5.jpg
Binary file added images/61_1.jpg
Binary file added images/61_2.jpg
Binary file added images/61_3.jpg
Binary file added images/61_4.jpg
Binary file added images/61_5.jpg
Binary file added images/62_1.jpg
Binary file added images/62_2.jpg
Binary file added images/62_3.jpg
Binary file added images/62_4.jpg
Binary file added images/62_5.jpg
Binary file added images/63_1.jpg
Binary file added images/63_2.jpg
Binary file added images/63_3.jpg
Binary file added images/63_4.jpg
Binary file added images/63_5.jpg
Binary file added images/64_1.jpg
Binary file added images/64_2.jpg
Binary file added images/64_3.jpg
Binary file added images/64_4.jpg
Binary file added images/64_5.jpg
Binary file added images/65_1.jpg
Binary file added images/65_2.jpg
Binary file added images/65_3.jpg
Binary file added images/65_4.jpg
Binary file added images/65_5.jpg
Binary file added images/66_1.jpg
Binary file added images/66_2.jpg
Binary file added images/66_3.jpg
Binary file added images/66_4.jpg
Loading

0 comments on commit d64af1e

Please sign in to comment.