-
Notifications
You must be signed in to change notification settings - Fork 2
/
embeds.py
65 lines (53 loc) · 1.9 KB
/
embeds.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import discord
import os
from discord.ext import commands, tasks
from collections import defaultdict
from discord.utils import get
# Creates a discord.Embed object #
def createEmbed(t):
# Embed message
embed = discord.Embed(
title = t)
return embed
# Invalid Syntax error
syntax_error = discord.Embed(
title = 'Invalid syntax!'
)
# General errors in computation
general_error = discord.Embed(
title = 'Errors were detected during computation'
)
# General errors in computation
alpha_error = discord.Embed(
title = 'WOOF! Wolfram Alpha is having trouble parsing thy query!',
description = 'Try rewording?',
color = discord.Color.blue()
)
# Not enough memory
memory_error = discord.Embed(
title = 'Not enough memory available to rasterize Notebook expression.'
)
# Time error
time_error = discord.Embed(
title = 'Timeout Error: Computation took too long!'
)
# Tail message
tail_message = discord.Embed(
title = f'**Learn more the about Wolfram Language**',
color = discord.Color.blue(),
#description = f'Requested by\n{ctx.message.author.mention}',
url = 'https://reference.wolfram.com/language/'
)
tail_message.set_thumbnail(url = 'https://media1.tenor.com/images/ed4da9a1bdbd4ff952638b19afa96506/tenor.gif?itemid=12660466')
# help
# help_message = discord.Embed(
# title = 'Resting!'
# )
help_message = discord.Embed(
title="WolfBot, fetching help!",
color=discord.Color.blue(),
description='**To seek help with WolfBot or submit a bug report, join https://discord.gg/eyd376A:**\n\n',
url='https://reference.wolfram.com/language/')
help_message.add_field(name="Commands", value='```diff\n- .bark <Wolfram expression>\n- .alpha <Wolfram Alpha Query>\n- .wolfsay <Message>\n- .docs <mathematical operation/wolfram function>```')
help_message.set_footer(text="Type .help to see commands or do .help <command>")
# await ctx.send(embed = help_message)