Skip to content

Commit

Permalink
extra words from another bot i made
Browse files Browse the repository at this point in the history
  • Loading branch information
Butterroach committed Apr 23, 2024
1 parent 75307bd commit 18ba013
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions bot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import discord
import dotenv
import json
import os
import requests
from discord.ext import commands
Expand All @@ -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:

This comment has been minimized.

Copy link
@artifishvr

artifishvr Apr 23, 2024

Contributor

surely there was a better way to do this

This comment has been minimized.

Copy link
@Butterroach

Butterroach Jun 8, 2024

Author Member

no there wasnt (this reply isnt late at all)

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
Expand Down

0 comments on commit 18ba013

Please sign in to comment.