forked from Lazymondaysunday/tweed
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e876d8
commit d0ac1dd
Showing
2 changed files
with
1 addition
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
worker: npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,23 +53,6 @@ client.login(process.env.BOT_TOKEN); | |
|
||
client.on('message', message => { | ||
if (!channels.includes(message.channel.id)) return | ||
if (message.content === '!ping') { | ||
// send back "Pong." to the channel the message was sent in | ||
const exampleEmbed = new Discord.MessageEmbed() | ||
.setColor("#0099ff") | ||
.setAuthor( | ||
"FOX Token", | ||
"https://assets.coincap.io/assets/icons/[email protected]", | ||
"https://coincap.io/assets/fox-token" | ||
) | ||
.addFields( | ||
{ name: "Price", value: "$0.70", inline: true }, | ||
{ name: "Change", value: "-8.00% 📈", inline: true, setColor: '#0099ff' }, | ||
) | ||
.setTimestamp() | ||
.setFooter("CoinCap", "https://iconape.com/wp-content/png_logo_vector/coincap.png"); | ||
message.channel.send(exampleEmbed); | ||
} | ||
if (message.content === '!proposals') { | ||
const resp = axios.get('https://api.boardroom.info/v1/protocols/shapeshift/proposals?limit=50').then(resp => { | ||
const data = resp.data.data | ||
|