Skip to content
Cyteon edited this page Jul 17, 2024 · 4 revisions

Getting started

Create a new gleam project

gleam new my_bot

cd my_bot

Install discord_gleam

gleam add discord_gleam

Run a bot

import discord_gleam
import logging

fn main() {
  logging.configure()

  let bot = discord_gleam.bot("YOUR TOKEN")
  discord_gleam.run(bot, [])
}
Clone this wiki locally