Skip to content

Piecuuu/memobot-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memobot, a basic bot for memes and stuff, written in C, using Concord, SQLite3 and cURL.

Prerequisites

How to setup

Create a config.json file

A basic config.json example:

{
  "logging": {
    "level": "trace",
    "filename": "bot.log",
    "quiet": true,
    "overwrite": true,
    "use_color": true,
    "http": {
      "enable": true,
      "filename": "http.log"
    }
  },
  "discord": {
    "token": "YOUR_DISCORD_TOKEN"
  }
}

Change the channels in src/memhandl.c

An Example

// List of channels for sending submissions
u64snowflake memobot_mem_channel[2] = { // Change to the number of id's
  1105815069322924076,
  1106243204417851474
};

// Channel for submissions to be sent to
u64snowflake memobot_board_channel = 1105940744268689429;

How to build

Run the following command in the bot's directory.

make

How to run

Again, you need to be cd'd into the bot's directory.

./memobot

You see this after a few seconds:

Logged in as xxxxxxx#XXXX (XXXXXXXXXXXXXXXXX)

In short terms, this means that your bot is working.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published