├── README.md
└── main.py
/README.md:
--------------------------------------------------------------------------------
1 | # jumptask-bot
2 | Unofficial Discord bot for jumptask.io
3 | ### You can invite the bot [here](https://discord.com/oauth2/authorize?client_id=936307386447188039&permissions=117760&scope=bot)
4 |
5 | JumpTask is a recently launched project that is working to build up a worldwide work force network. This in an unofficial Discord bot interacting with JumpTask's API to provide you with information about JumpTask and their crypto token JumpToken hosted on the Smart Chain.
6 |
7 | These are the commands:
8 | $price - will return an embed with the price of the JumpToken
9 | $info - will return an embed with information about JumpTask
10 | $roadmap - returns the JumpTask roadmap and plans for the future
11 |
12 | There will be more commands coming in the future since I'm learning new things about the API every day. Stay tuned!
13 |
14 | Contact:
15 | [Twitter](https://twitter.com/341jasper) - [Telegram](https://t.me/rcntly) - [Discord](https://discord.com/users/818928136825733170)
16 |
--------------------------------------------------------------------------------
/main.py:
--------------------------------------------------------------------------------
1 | import discord
2 | import requests
3 | import time
4 | import json
5 | from bs4 import BeautifulSoup
6 |
7 | client = discord.Client()
8 |
9 |
10 | @client.event
11 | async def on_ready():
12 | print('We have logged in as {0.user}'.format(client))
13 |
14 |
15 | @client.event
16 | async def on_message(message):
17 | if message.author == client.user:
18 | return
19 | if message.content.startswith("$info"):
20 | embed = discord.Embed(title="JumpTask information", description="[Website](https://www.jumptask.io/) - [Whitepaper](https://gitbook.jumptask.io/) - [Token](https://bscscan.com/token/0x88d7e9b65dc24cf54f5edef929225fc3e1580c25)")
21 | embed.add_field(name="User side", value="JumpTask will offer its users a chance to earn money by completing simple microtasks that will not require specific knowledge, experience, or serious time investment. The tasks will be categorized according to their nature and complexity and introduced gradually from the simplest to more challenging in terms of their development and verification.")
22 | embed.add_field(name="Partner side", value="JumpTask's partners will have to define certain parameters of the task they need completed, including but not limited to the type of task, rules of completion validation, duration of the campaign, and reward size in JMPT. To be able to issue the rewards, they will also have to top up their JumpTask balance with JumpTokens (JMPT) prior to activating the campaigns.")
23 | embed.add_field(name="From platform to protocol", value="JumpTask will act as an interim platform to onboard existing businesses and to create task protocols that use JumpToken. All the active task modules that prove to work successfully will be used to create templates for future smart contracts. These can then be validated directly on the blockchain with no intermediaries and allow for easier and more convenient use.")
24 | embed.set_image(url="https://static.wixstatic.com/media/a3f5b0_12f075ae75c147f49cfb5f58832f0752~mv2.png/v1/fill/w_920,h_497,al_c,q_90,usm_0.66_1.00_0.01/JT%20Scheme%203%20_%201%20_%20Dark.webp")
25 | await message.channel.send(embed=embed)
26 |
27 | if message.content.startswith("$roadmap"):
28 | embed = discord.Embed(title="JumpTask Roadmap")
29 | embed.add_field(name="2022 Q1", value="-JumpTask Platform\n-JumpToken Release\n-Initial Module\n-100K Users\n-DEX offering")
30 | embed.add_field(name="2022 Q2", value="-JumpTask Android App\n-Survey Module\n-1M Users")
31 | embed.add_field(name="2022 Q3/4", value="-JumpTask iOS APP\n-AppReview Module\n-1 Billion Tasks\n-5M Users")
32 | embed.add_field(name="2023", value="-Attention Task Module\n-Action Task Module\n-10 Billion Tasks\n-20M Users")
33 | embed.add_field(name="2024", value="-Data Task Module\n-50 Billion Tasks\n-50M Users")
34 | await message.channel.send(embed=embed)
35 |
36 | if message.content.startswith('$jmpt'):
37 | price = requests.get("https://api.jumptask.io/currency/").json()["data"]["usd"]
38 | price = float(price)
39 | headers = {
40 | "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
41 | }
42 | holders = requests.get("https://bscscan.com/token/0x88d7e9b65dc24cf54f5edef929225fc3e1580c25", headers=headers)
43 | soup = BeautifulSoup(holders.content, 'html.parser')
44 | page = soup.find("div", {"class":'mr-3'}).getText()
45 | page = page.split("a")[0]
46 | embed = discord.Embed(title="JumpToken Stats")
47 | embed.add_field(name="Price", value="$" + str(round(price, 3)))
48 | embed.add_field(name="Holders", value=page.strip())
49 | await message.channel.send(embed=embed)
50 |
51 |
52 | client.run("")
53 |
54 |
--------------------------------------------------------------------------------