Skip to content

Commit d1d406d

Browse files
committed
Remove unnecceserry stuff
1 parent be346ca commit d1d406d

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

commands/img.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,7 @@ async def discordmessage(self, ctx, user: discord.Member = None, *, message: str
172172
"colour": "#ff0000"
173173
})
174174

175-
args = {
176-
"avatar_url": user.avatar.url,
177-
"username": user.name,
178-
"text": message
179-
}
180-
181-
api = "https://benny.fun/api/discordmessage"
182-
183-
response = requests.get(f"https://benny.fun/api/discordmessage?avatar_url={args['avatar_url']}&username={args['username']}&text={args['text']}")
175+
response = requests.get(f"https://benny.fun/api/discordmessage?avatar_url={user.avatar.url}&username={user.name}&text={message}")
184176

185177
if response.status_code == 200:
186178
with open("data/cache/discordmessage.png", "wb") as file:

0 commit comments

Comments
 (0)