Skip to content

exformation/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This can be run with nix run and by having a .env file containing your discord bot token.

If you have just the .env file you can run it without cloning by using nix run github:exformation/discord-bot.

I use this as a startup service by defining this repo as an input:

discord-bot = {
    url = "github:exformation/discord-bot";
    inputs.nixpkgs.follows = "nixpkgs";
};

and then using the following systemd service:

systemd.services.discord-bot = {
    description = "Discord Bot";
    after = [ "network.target" ];
    wantedBy = [ "multi-user.target" ];
    serviceConfig = {
        User = user;
        WorkingDirectory = "/home/${user}/repos/discord-bot";
        ExecStart = lib.getExe discord-bot.packages.${pkgs.system}.default;
    };
};

This bot is just a personal one for posting magic cards. It's not very useful for anyone else.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published