https://github.com/timelessnesses/giveaway-bot
A very fast/easy to use/verbosive giveaway bot with PostgreSQL
https://github.com/timelessnesses/giveaway-bot
Last synced: about 2 months ago
JSON representation
A very fast/easy to use/verbosive giveaway bot with PostgreSQL
- Host: GitHub
- URL: https://github.com/timelessnesses/giveaway-bot
- Owner: timelessnesses
- License: mpl-2.0
- Created: 2022-05-05T18:33:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T17:17:50.000Z (about 4 years ago)
- Last Synced: 2025-01-01T15:42:56.373Z (over 1 year ago)
- Language: Python
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Giveawaynesses
A free/open-source/easy/verbosive giveaway bot for discord.
## Features
- Condition (still not implemented multiple conditions)
- Fully customizable giveaway embed
- PostgreSQL (for fast database)
- Get giveaway info from their ID (still not implemented)
- Tracking end time
## Status
- [x] Database
- [x] Embed
- [x] Condition
- [ ] Conditions
- [x] Get giveaway info
- [ ] Stable
## How to setup
REMINDER: You need to have a postgresql database running and you need poetry installed. Also you need to use git to clone this repository only downloading the zip file will likely break the version checking since it use git to check it commit is out of dated or updated.
1. Install poetry
```bash
pip install poetry
```
2. Install dependencies
```bash
poetry install
```
3. Configure .env file
```bash
DB_HOST=postgresql database hostname (ip address or hostname)
DB_PASS=postgresql database password
DISCORD_TOKEN=discord bot token
JISHAKU_HIDE=1 # hide jishaku
```
4. Setup [postgresql database](#postgresql-setup)
5. Run the bot
```bash
poetry shell
python3 bot.py
```
## PostgreSQL setup
1. Install PostgreSQL
2. Execute this command using `psql` tool
```sql
CREATE ROLE giveaway_bot WITH LOGIN PASSWORD 'giveaway_bot';
CREATE DATABASE giveaways OWNER giveaway_bot;
COMMIT
```
3. You're likely done(?)