improved project layout and began documentation

master
Rachel Fae Fox 2022-11-10 13:42:45 -05:00
parent 501a26fb13
commit 288797833f
15 changed files with 51 additions and 6 deletions

View File

@ -2,7 +2,7 @@
## Installation
you need to configure this with a config.exs
you need to configure this with a dev.exs like such
```elixir
import Config
@ -26,10 +26,7 @@ config :discordirc,
]
config :nostrum,
# The token of your bot as a string
token: "666",
# The number of shards you want to run your bot under, or :auto.
num_shards: :auto
token: "YOUR TOKEN HERE",
```
## Running

17
config/config.exs Executable file
View File

@ -0,0 +1,17 @@
import Config
config :discordirc,
channels: [
],
networks: [
]
config :nostrum,
# The token of your bot as a string
token: "",
# The number of shards you want to run your bot under, or :auto.
num_shards: :auto,
gateway_intents: :all
import_config "#{config_env()}.exs"

0
config/test.exs Executable file
View File

30
docs/todo.org Executable file
View File

@ -0,0 +1,30 @@
* DONE warning: variable "nick" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/formatter.ex:10: Discordirc.Formatter.from_irc/3
CLOSED: [2022-11-10 Thu 12:51]
* DONE warning: variable "e" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/discordhandler.ex:26: Discordirc.DiscordHandler.is_me_or_my_webhook/1
CLOSED: [2022-11-10 Thu 12:51]
* DONE warning: variable "me" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/discordhandler.ex:36: Discordirc.DiscordHandler.handle_event/1
CLOSED: [2022-11-10 Thu 12:51]
* DONE warning: unused alias DiscordAPI lib/formatter.ex:5
CLOSED: [2022-11-10 Thu 12:58]
* DONE warning: variable "e" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/webhookservice.ex:96: Discordirc.WebhookService.handle_info/2
CLOSED: [2022-11-10 Thu 12:53]
* DONE warning: variable "e" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/webhookservice.ex:99: Discordirc.WebhookService.handle_info/2
CLOSED: [2022-11-10 Thu 12:53]
* DONE warning: variable "users" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/irc_bot.ex:115: Discordirc.IRC.handle_info/1
CLOSED: [2022-11-10 Thu 12:57]
* DONE warning: variable "users" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/irc_bot.ex:118: Discordirc.IRC.handle_info/1
CLOSED: [2022-11-10 Thu 12:57]
* DONE warning: variable "modestr" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/irc_bot.ex:121: Discordirc.IRC.handle_info/1
CLOSED: [2022-11-10 Thu 12:57]
* DONE warning: variable "topic" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/irc_bot.ex:124: Discordirc.IRC.handle_info/1
CLOSED: [2022-11-10 Thu 12:57]
* DONE warning: clauses with the same name should be grouped together, "def handle_info/2" was previously defined (lib/irc_bot.ex:64) lib/irc_bot.ex:127
CLOSED: [2022-11-10 Thu 12:56]
* DONE warning: unused alias ApiError lib/webhookservice.ex:10
CLOSED: [2022-11-10 Thu 12:59]
* DONE warning: unused alias DiscordCache lib/webhookservice.ex:9
CLOSED: [2022-11-10 Thu 12:59]
* DONE warning: variable "args" is unused (if the variable is not meant to be used, prefix it with an underscore) lib/irc_bot.ex:161: Discordirc.IRC.handle_info/2
CLOSED: [2022-11-10 Thu 12:58]
* DONE warning: unused alias DiscordAPI lib/irc_bot.ex:37
CLOSED: [2022-11-10 Thu 12:58]

View File

@ -7,7 +7,8 @@ defmodule Discordirc.MixProject do
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
deps: deps(),
aliases: [test: "test --no-start"]
]
end

BIN
priv/defaultavatar.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
priv/defaultavatar.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB