Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.16 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.16 KB

potcu

A bot that you can use to bomb voice channels of your choice.

Prequisites

  • Erlang/OTP 22
  • Elixir 1.10.2

Running

To run potcu, you'll need a Discord bot token, and for obvious security reasons this repo does not provide one.

After obtaining a token, create a file named local.exs under the config/ folder, and fill in the Nostrum config. Note that this file is not tracked by Git so you can safely keep your token there.

config/local.exs

use Mix.Config

config :nostrum,
  token: "...",
  num_shards: 1

Once you've placed your token, simply run the Phoenix server with the MIX_ENV environment variable set to local

$ MIX_ENV=local mix run --no-local

Hint: Don't forget to pass the --no-local option unless you want Elixir to stop your app immediately

Testing

Simply run

$ mix test

By default, mix attempts to start the actual application before running tests, so if you're just running unit tests you might want to skip this step. To do that, pass the --no-start option

$ mix test --no-start

License

MIT