Skip to content

cosmos-tower is a governance discord bot for validators

Notifications You must be signed in to change notification settings

nysa-network/cosmos-tower

Repository files navigation

Cosmos tower

discord image example

Installation

Create a Discord bot

here is a nice tutorial from discord.js docs

  1. Create your own discord server
  2. Go to https://discord.com/developers/applications?new_application=true and create a new application
  3. On the General Information page, copy Application ID and Public Key, you can also setup an app icon
  4. Go on Application Testers page and add yourself
  5. On the OAuth2 Page/URL Generator, select scope bot, and bot permissions: Send Messages, Add Reactions, Read Message History You should have a URL like: https://discord.com/api/oauth2/authorize?client_id={CLIENT_ID}&permissions=67648&scope=bot
  6. Go on this url and add the discord bot into your server
  7. Create a private channel, and add your bot inside of it
  8. On discord app, go to app testers, and add yourself as a tester.

Setup wallet

Grant MsgVote from validator address

export GRANTEE=stars13lxkjj7959yda7xqrlrf07zenmgrezheypxzvs

$DAEMON_NAME tx authz grant $GRANTEE generic --msg-type /cosmos.gov.v1beta1.MsgVote --from validator --fees 50000ustars

You can use tfm.com to send money via ibc to every wallet address

Config

  1. Setup the default config for your bot
cp config.example.yml config.yml
echo '[]' > cosmos-tower.db.json
  1. Install docker and docker-compose

  2. Start it ! 🎉

docker-compose up -d

About

cosmos-tower is a governance discord bot for validators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages