-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
98 lines (85 loc) · 5.87 KB
/
README.txt
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
____ _____ _ ____ __ __ _____ |
| _ \| ____| / \ | _ \ | \/ | ____| |
| |_) | _| / _ \ | | | | | |\/| | _| |
| _ <| |___ / ___ \| |_| | | | | | |___ |
|_| \_\_____/_/ \_\____/ |_| |_|_____| |
________________________________________________|
**DOCUMENTATION**
Table of Contents
1. General Information (Language choice, bot information)
2. Language specifics and platform
3. Functionality
= See dividers for specifics
= This contains all possible commands for use
4. Contributors
____________________________________________
_ ____ _
/ | / ___| ___ _ __ ___ _ __ __ _| |
| | | | _ / _ \ '_ \ / _ \ '__/ _` | |
| |_ | |_| | __/ | | | __/ | | (_| | |
|_(_) \____|\___|_| |_|\___|_| \__,_|_|
____________________________________________
This bot user was created using DV8FromTheWorld's Java Discord API (JDA), Version 3.8.3
Source code is available, but the bot itself is not public for guild use. It is currently a proof of concept.
This bot was developed for the HackGT 2019 Competition (Note the images associated) with the intent of entertainment.
However, it contains functionality that can be extended for other uses such as sparking creativity born from creativity itself.
It was decided to be an e-commerce bot, specifically handling an exchange of LoL game account information (a questionable, but oddly lucrative market) in the example provided.
It also uses Integromat services which allow our bot to trigger another bot to output a payment system (our chosen was PayPal) confirmation assuming that the product in question is what the customer wants. For demo purposes, the return and cancel links return to the Discord home page.
____________________________________________________________
____ _
|___ \ | | __ _ _ __ __ _ _ _ __ _ __ _ ___
__) | | | / _` | '_ \ / _` | | | |/ _` |/ _` |/ _ \
/ __/ _ | |__| (_| | | | | (_| | |_| | (_| | (_| | __/
|_____(_) |_____\__,_|_| |_|\__, |\__,_|\__,_|\__, |\___|
|___/ |___/
____________________________________________________________
The source code of this bot user is written in Java. The JDA 3.8.3 was used as an external reference dependency.
It uses WebSocket to communicate with Discord's hosting server and acts to take inputs from Users (Clients) and instruct
the server to take specific actions using User input.
Since bot functionality is specifically defined, this bot can be translated using appropriate APIs to other languages
such as Python, C++, or JavaScript. In this case, Java was preferred due to developer experience (primarily my own)
__________________________________________________________________________________
_____ _ _ _ ____ _
|___ / / \ | | | / ___|___ _ __ ___ _ __ ___ __ _ _ __ __| |___
|_ \ / _ \ | | | | | / _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` / __|
___) | / ___ \| | | | |__| (_) | | | | | | | | | | | (_| | | | | (_| \__ \
|____(_) /_/ \_\_|_| \____\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|___/
__________________________________________________________________________________
╔════════════════════════════════════════╗
║ ╦ ╦╔═╗╔═╗╦═╗ ╔═╗╔═╗╔╦╗╔╦╗╔═╗╔╗╔╔╦╗╔═╗ ║
║ ║ ║╚═╗║╣ ╠╦╝ ║ ║ ║║║║║║║╠═╣║║║ ║║╚═╗ ║
║ ╚═╝╚═╝╚═╝╩╚═ ╚═╝╚═╝╩ ╩╩ ╩╩ ╩╝╚╝═╩╝╚═╝ ║
╚════════════════════════════════════════╝
-> "!buy"
- Case-sensitive
- Causes our bot to print "%order"
- This acts as a trigger to Integromat's bot user implementation to call PayPal services.
-> "!list"
- Case-sensitive
- Shows a listing of all available items users have chosen to add.
- Private messages work to submit information
-> "!sell"
- Case-sensitive
- Specific command to take in data to be parsed to an Account object
- Adds the Account to the current listings.
╔═══════════════════════════════════════════╗
║ ╔╦╗╔═╗╔╗ ╦ ╦╔═╗ ╔═╗╔═╗╔╦╗╔╦╗╔═╗╔╗╔╔╦╗╔═╗ ║
║ ║║║╣ ╠╩╗║ ║║ ╦ ║ ║ ║║║║║║║╠═╣║║║ ║║╚═╗ ║
║ ═╩╝╚═╝╚═╝╚═╝╚═╝ ╚═╝╚═╝╩ ╩╩ ╩╩ ╩╝╚╝═╩╝╚═╝ ║
╚═══════════════════════════════════════════╝
-> "!hello"
- Case-insensitive
- tests implementation of User mention
- Bot sends message "Hello @Username"
_________________________________________________________________________
_ _ ____ _ _ _ _
| || | / ___|___ _ __ | |_ _ __(_) |__ _ _| |_ ___ _ __ ___
| || |_ | | / _ \| '_ \| __| '__| | '_ \| | | | __/ _ \| '__/ __|
|__ _| | |__| (_) | | | | |_| | | | |_) | |_| | || (_) | | \__ \
|_|(_) \____\___/|_| |_|\__|_| |_|_.__/ \__,_|\__\___/|_| |___/
__________________________________________________________________________
Repository Owner: Tony Tian
Additional Contributors: Aditya Singhal, Ammar Ratnani
HackGT Team Ekko
- Leader: Aditya Singhal
- Members: Tony Tian, Ammar Ratnani