Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

GeopJr/Granz-cr

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Discord_Bots DOCS

Granz-cr

A Discord Bot & Framework written in Crystal using discordcr

How to install

  • shards install
  • Open config.json, replace the info with yours
  • Set the Env vars you need
  • Everthing should now work
  • crystal src/Granz.cr or compile

config.json

{
  // Your bot's ID
  "client_id": 100000000000000000,
  // Your ID
  "my_id": 100000000000000000,
  // Bot version
  "version": 2,
  // Prefix
  "prefix": "--",
  // Support guild url (leave empty if none)
  "support_guild": "7XQNZGq",
  // Your tag
  "my_tag": "GeopJr#4066"
}

Env Vars

GRANZ_BUILD: Set to true to build commands.md
GRANZ_BOTLIST: Set to true to use bot_list.cr
TOPGG_TOKEN: Set to top.gg token if any
BOTSGG_TOKEN: Set to bots.gg token if any
BOTSONDISCORD_TOKEN: Set to bots.ondiscord.xyz token if any
GRANZ_TOKEN: Set to bot's token

Framework

You can use Granz as a base for your bot!

  • Register commands dynamically
  • Generate a markdown of all the commands
  • Dynamic help command
  • More More More!

Invite it

CLICK HERE

Copyrights

Granz's avatar is copyrighted under Mentaiko Itto©

Thanks to z64 for helping me with both crystal and discordcr