From 18ba013c25135be558f534e83c16faed7b49e20e Mon Sep 17 00:00:00 2001 From: Butterroach Date: Tue, 23 Apr 2024 06:09:47 +0300 Subject: [PATCH] extra words from another bot i made --- bot.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/bot.py b/bot.py index 593ab54..6c9e2d5 100644 --- a/bot.py +++ b/bot.py @@ -1,5 +1,6 @@ import discord import dotenv +import json import os import requests from discord.ext import commands @@ -11,13 +12,17 @@ intents.message_content = True client = commands.Bot(command_prefix="[[", intents=intents) tree = client.tree -words = list( - requests.get( - "https://raw.githubusercontent.com/dwyl/english-words/master/words_dictionary.json" - ) - .json() - .keys() -) # only use of requests im so good at this stuff +with open("silly_words.json") as f: + words = ( + list( + requests.get( + "https://raw.githubusercontent.com/dwyl/english-words/master/words_dictionary.json" + ) + .json() + .keys() + ) + + json.load(f)["words"] + ) # only use of requests im so good at this stuff @client.event