-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiscord.py
28 lines (24 loc) · 1.27 KB
/
discord.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from discord_hooks import Webhook
from datetime import datetime
WEBHOOK_URL = ''
embed = Webhook(
url=WEBHOOK_URL,
username='Argos', # Username of the 'bot'
color=555553, # Colour of the side of the embed
)
def sendHook(prodtitle, url, dateTimeObj):
embed.set_author(name=prodtitle, url=url)
embed.set_title(title=prodtitle, url=url)
embed.set_desc("``` YOU CAN FUCKING BUY IT NOW RUDE BOI```" + url)
#embed.add_field(name="Field 1 \U0001f603", value="some of these properties have certain limits...", inline=False)
#embed.add_field(name="Field 2 :scream:",
# value="try exceeding some of them!", inline=False)
#embed.add_field(name="Field 3 :face_with_rolling_eyes:", value="Jokes, dont do that.", inline=False)
#embed.add_field(name="Field 4 :face_with_rolling_eyes:", value="these last two")
#embed.add_field(name="Field 5 :face_with_rolling_eyes:", value="are inline fields")
## Set the timestamp to either a ISO 8601 timestamp, or simply use `now=True`, which uses current time
embed.set_timestamp(time=str(dateTimeObj))
#embed.set_thumbnail('tesco.png')
#embed.set_image('https://cdn.shopify.com/s/files/1/0382/7695/6292/files/logo_360x.png?v=1587069640')
#embed.set_footer( ts=True,)
embed.post()