---
# System prepended metadata

title: SUBOT - Onboarding AI Polygon Discord Bot

---


# SUBOT - Onboarding AI Polygon Discord Bot


<p align="left">
<a href="https://polygon.technology/" target="_blank">
<img src="https://i.imgur.com/JQxcBAq.png" width="50" alt="Polygon">
</a>
</p>



## **SU (South Africa-Uruguay) Bot** **Team** 


 [Tebogo Mampuru](https://www.linkedin.com/in/tebogo-mampuru-119756150/) 
[Alejandro Adorjan](https://www.linkedin.com/in/alejandroadorian/)




# Video 

https://youtu.be/chqMX_9s2xs

 


## Business Use Case
### Marketing line: 
> Mr Peezy - make crypto easy 

Our whole business model is trying to solve the problem of how we can make trading crypto easy for the layman, how can we make excited about trading crypto with only having the knowledge of using discord.

We used the design thinking model and we found that users generally do not care about the technical stuff they want to interact with the technology knowing that it is safe to do. Furthermore, they are generally lazy and want things on easy and quickly.

So here comes *Mr Peezy*, *Mr Peezy* is a bot that solves all your problem when it comes to trading in crypto, he is not only there to earn you money, but he is there to assist you with all the transactions and make it easy for you to:

*	view their wallet 
*	see the prices and price change percentages of cryptos on command
*	transact using the bot
*	having a QR code.

*Mr Peezy* will handle all the thing you need done you just have to write how much you want to pay a particular person and Mr Peezy will do it for end user. We also hope to add more functionality to Mr Peezy like incorporating more business more to measure the volatility, the ability to put stops losses on trades, incorporate AI (artificial intelligence) and machine learning so Mr Peezy can learn the patterns that move depending on the users of the servers and price movement so to give advice on trades etc.

### The Value Propositions
>	It gives more time to users, so they do not have to learn how to trade and on what network they are trading on Mr Peezy just does it for them easily.

### The Revenue streams
*	Mr Peezy will be valued using a tired model depending on the level of functionality that you want you will be charged different amount.
*	To check your wallet and the prices the services is free.
*	To transact and see the percentage change will be $0,5 a month.
*	[Research number of people using the competition we are applying for?]
*	The tiered approach will hopefully grow into other areas

### Customer segments  
*	High earning individuals
*	Mainly third & second tier
*	Low earing individuals
*	Mainly first & second tier
*	Business
*	Mainly third tier.

### Channel
•	Discord

#### **Key partners**
•	Sushi 
•	Polygon

#### **Key activities**
•	view their wallet 
•	see the prices and price change percentages of cryptos on command
•	transact using the bot

#### **Cost that involved**
•	Labour costs
•	Hosting fees
•	development costs

This is the business case for Mr Peezy, this bot will be trying to help, we can see that the greatest business model that is close will be the luno but with us Mr Peezy will be an interactive platform whereby you will give instruction to, and Mr Peezy does it as per your instruction. For safety you will have to log in once and you can give instruction as much as you want to Mr Peezy.


## Software Use Cases 



| Command    | Bot Response |
| -------- | -------- | 
| *!balance (default address)*     |  ![](https://i.imgur.com/ttVFWTe.png) | 
|  *!create* (sends a private message to the user) | ![](https://i.imgur.com/oDjqIKT.png)    | 
|  *!price* | ![](https://i.imgur.com/cb7yK34.png)    | 
|  *!qr* (send and receive tokens) | ![](https://i.imgur.com/eDvML0U.png) ![](https://i.imgur.com/0p6wGYV.jpg)   | 




>We also deploy our ERC-20 Token in Mumbai-Network using [Openzeppelin](https://openzeppelin.com)


CONTRACT ADDRESS
```
0xC8D1dF1AC23D9703c277324021B2bB861e1eb9a1
```

**Artificial Intelligence Training**

>Example of training commands


> what is my balance
> create my account
> my balance
> price
> price of matic
> usd price
> send money
>  send tokens
> receive money
> explore transactions
> please help

# Build & Run 

.env.example rename to .env

> DISCORD_TOKEN = {your token}
> DISCORD_CHANNEL = {your channel}
> API_KEY = {your polygon api key}
```
npm install
npm run compile
npm run start
```

## Online Bot 

Discord: @purunator @aleadorjan


<p align="center">
<a href="https://polygon.technology/" target="_blank">
<img src="https://i.imgur.com/JQxcBAq.png" width="150" alt="Polygon">
</a>
</p>


>**[Polygon](https://polygon.technology/)**  is a protocol and a framework for building and connecting Ethereum-compatible blockchain networks. Aggregating scalable solutions on Ethereum supporting a multi-chain Ethereum ecosystem. 

# Sushi

<p align="left">
<a href="https://sushi.com/" target="_blank">
<img src="https://sushi.com/static/media/logo.dec926df.png " width="50" alt="Sushi">
</a>
</p>
 
### ERC-20 on Matic
Our ERC-20 Contract in Polygon Mainnet

`0x8Fa4f7127e9FCaFee9F7cF7679dF5199c342B158`




|  | |
| -------- | -------- |
*wallet*   | ![](https://i.imgur.com/vrQ3MrA.png =250x350) 
| *adding our contract to Sushi*| ![](https://i.imgur.com/ilEUfnM.png =x250)
| *approving AAVE*  | ![](https://i.imgur.com/nc5IH9W.png =x250) | 
| *liquidity* | ![](https://i.imgur.com/AHf7U5u.png =x250) | 
| *swap*  | ![](https://i.imgur.com/hc4vvbJ.png =x250) |
| *pool* | ![](https://i.imgur.com/pFtVnTv.png =x250) | 
| *transaction* | ![](https://i.imgur.com/OrN7MVT.png ) | 


## Video 
https://youtu.be/VGt-Cv0Vsn0


## Transaction 
https://polygonscan.com/tx/0xae12cb5a8f74a38c6dca3f4925e4dd1aa792c16698401fd3d052fdc09e77cf81 

![](https://i.imgur.com/9sm8UXM.png)





## Resources


>Testnet
https://rpc-mumbai.matic.today

> Faucet
https://faucet.matic.network

>Explorer
https://polygonscan.com/







# Hackaton Info

**EncodeClub**
https://www.encode.club/hack-africa

**Challenge Article**
https://medium.com/encode-club/hack-africa-challenges-6534b2c6810a?source=friends_link&sk=4184a9d2d1ec5f32a865fdbd0711c321

**Polygon Workshop**
https://medium.com/encode-club/hack-africa-polygon-workshop-introduction-to-polygon-video-and-slides-1d3dd9c6320

# DeadLine 15 Aug.
Submition Form https://forms.gle/DNXu2wQG78Jw1hFz7


#### Prices


---

**Polygon**
Scale your Dapp using Polygon or build any dApp on Polygon.

---

**Sushi**

1: Easy Challenge



---

## Our Meetings
*Sunday 11 July* - 2hs


 - **Highlights:** Meet :) 
 - **Learnings:** Github, create account, git init, add, commit, pull , push 
 - **Next Steps:**  Blockchain concepts, Polygon account  
 - **Next Meeting :** Sunday 18 11hs UY (-3UTC)
 
 # Ideas 
> The user should be able to view their wallet 
> The user should be able to see the prices and price change percenatage of crytos on command
> The user should be able to transact using the bot


*Sunday 18 July*

**Agenda:**
18 July - 2hs

 - **Highlights:** User perspective, , User friendly, not 0x , Use cases
 - **Learnings:** transactions, Explorer, Metamask, testnet, 
 - **Next Steps:** Coding in 
 - **Next Meeting :** Next sunday 11hs UY (-3UTC)

```
MNEMONIC for testing and deploying (in .env file for real projects): 
because verify raccoon common custom crew local loud any indoor soup permit
```

1. Install a wallet 
-  Metamask Share account 

**Agenda:**
 - **Highlights:** User perspective, , User friendly, not 0x , Use cases
 - **Learnings:** transactions in PolyGon, Explorer, Metamask, testnet, 
 - **Next Steps:** Coding in 
 - **Next Meeting :** Next sunday 11hs UY (-3UTC)
25 July - 2hs

**Agenda:**
1 Aug - 2hs


**Agenda:**
 - Deploy a contract using Openzeppelin

TOKEN 
```
0xC8D1dF1AC23D9703c277324021B2bB861e1eb9a1
```

8 Aug - 2hs
**Agenda:**
Building Discord Bot Concepts
**Contract View**	

- [x] https://explorer-mumbai.maticvigil.com/address/0xC8D1dF1AC23D9703c277324021B2bB861e1eb9a1/transactions
- [x] https://medium.com/sushiswap-org/do-you-believe-in-matic-how-to-use-sushi-on-polygon-with-the-matic-bridge-caea954b1b6c


https://staging.sushi.com/#/swap


Business Model  - Draft Version @purunator
Coding Use Cases  - @aleadorjan

**Milestones:**
Video , Final Coding , Testing & Editing video,  Upload Form https://forms.gle/DNXu2wQG78Jw1hFz7

15 Aug. Celebrate :) 








