Installation Guide
This guide covers different ways to install and deploy Amiquin.
For Discord Server Owners
Option 1: Invite Public Bot (Recommended)
The easiest way to get Amiquin in your server:
- Use the invite link: Add Amiquin to your server
- Select your server from the dropdown
- Review permissions and click "Authorize"
- Verify the bot appears in your member list
Required Permissions
Amiquin needs these permissions to function properly:
- Send Messages - To respond to commands
- Embed Links - To send rich message embeds
- Use Slash Commands - For modern Discord commands
- Read Message History - For context-aware features
- Manage Messages - For moderation features (optional)
- Connect & Speak - For voice features (optional)
For Self-Hosting
Option 2: Docker (Recommended for Self-Hosting)
Run Amiquin using Docker:
# Pull the latest image
docker pull ghcr.io/huebyte/amiquin:latest
# Run with environment variables
docker run -d \
--name amiquin \
-e DISCORD_TOKEN=your_bot_token \
-e DATABASE_CONNECTION=your_db_connection \
ghcr.io/huebyte/amiquin:latest
Option 3: Docker Compose
Use the provided docker-compose.yml
:
# Copy environment file
cp .env.example .env
# Edit environment variables
nano .env
# Start the services
docker-compose up -d
Option 4: Manual Installation
For development or custom deployments:
Prerequisites
- .NET 9.0 SDK
- Git
- Database (MySQL/SQLite)
Steps
Clone the repository:
git clone https://github.com/huebyte/Amiquin.git cd Amiquin
Configure settings:
cp source/Amiquin.Bot/appsettings.example.json source/Amiquin.Bot/appsettings.json # Edit appsettings.json with your configuration
Build and run:
dotnet restore dotnet build dotnet run --project source/Amiquin.Bot
Environment Configuration
Required Environment Variables
# Discord Bot Token (Required)
DISCORD_TOKEN=your_discord_bot_token
# Database Configuration
DATABASE_TYPE=sqlite # or mysql
DATABASE_CONNECTION=Data Source=amiquin.db
# Optional Configuration
LOG_LEVEL=Information
ENVIRONMENT=Production
Creating a Discord Bot
To get a Discord bot token:
- Go to Discord Developer Portal
- Click "New Application"
- Navigate to "Bot" section
- Click "Add Bot"
- Copy the token from "Token" section
- Enable necessary Privileged Gateway Intents if needed
Database Setup
SQLite (Default)
No additional setup required. The database file will be created automatically.
MySQL
Create database:
CREATE DATABASE amiquin; CREATE USER 'amiquin'@'%' IDENTIFIED BY 'your_password'; GRANT ALL PRIVILEGES ON amiquin.* TO 'amiquin'@'%';
Update connection string:
DATABASE_TYPE=mysql DATABASE_CONNECTION=Server=localhost;Database=amiquin;User=amiquin;Password=your_password;
Verification
After installation, verify Amiquin is working:
- Check bot status - Bot should appear online in Discord
- Test basic command - Try
/ping
or/help
- Check logs - Review application logs for any errors
Troubleshooting
Common Issues
- Bot appears offline: Check Discord token and internet connection
- Commands not working: Verify bot permissions and slash command registration
- Database errors: Check database connection string and permissions
Getting Help
- Check configuration guide
- Join our Discord server
- Create an issue on GitHub