A Discord bot that enables cryptocurrency wallet management and transactions directly through Discord commands. see here for the live bot: Web3bot
- Create and manage Ethereum-compatible wallets
- Support for multiple networks (Ethereum, BSC, Polygon, Goerli)
- Send and receive tokens (ETH, BNB, MATIC)
- ERC-20 token transfers and management
- Secure password protection for wallets
- Transaction history and balance checking
- Import existing wallets using private keys
- Clone the repository:
git clone https://github.com/johnexzy/web3gg.git
cd web3gg- Install dependencies:
npm install- Create a
.envfile and add the following:
CLIENT_TOKEN=your_discord_bot_token
DATABASE_URL=your_postgres_database_url
ICON_URL=bot_icon_url
WEBSITE=bot_website_url
ADMIN_ROLE=admin_role_id
crypto_salt=your_encryption_salt
TETHER=tether_contract_address- Build and start the bot:
npm run build
npm start- Deploy to Heroku:
npm run deploy:test/create-wallet- Create or import a wallet/wallet- View wallet balances/import-token- Import ERC-20 tokens/send- Send native tokens (ETH/BNB/MATIC)/transfer- Transfer ERC-20 tokens/tip- Tip native tokens to server members/tip-token- Tip ERC-20 tokens to server members/address- Get wallet address/change-password- Change wallet password/reset-password- Reset wallet password/export-private-key- Export wallet private key/commands- List all available commands
- Encrypted private key storage
- Password protection for transactions
- Private key recovery system
- Ephemeral responses for sensitive data
- Ethereum Mainnet
- Binance Smart Chain
- Polygon
- Goerli Testnet
The application uses PostgreSQL with Sequelize ORM and includes two main models:
- Wallet Model - Stores encrypted wallet data
- Token Model - Tracks imported ERC-20 tokens
- Run in development mode:
npm run build
npm start- Deploy to Heroku:
npm run deploy:testMIT License - see LICENSE file for details
John Oba (obajohn75@gmail.com)
- Fork the repository
- Create your feature branch
- Commit changes using Commitizen:
npm run cz- Push to your branch
- Open a Pull Request
Key dependencies include:
- discord.js
- ethers
- sequelize
- @discordjs/builders
- crypto-js
- bcryptjs
For a complete list, see the package.json file.