Compare commits
2 Commits
501a26fb13
...
65c7c0a00c
Author | SHA1 | Date |
---|---|---|
Rachel Fae Fox | 65c7c0a00c | |
Rachel Fae Fox | 288797833f |
|
@ -22,3 +22,6 @@ erl_crash.dump
|
|||
# Ignore package tarball (built via "mix hex.build").
|
||||
discordirc-*.tar
|
||||
|
||||
*.~undo-tree~
|
||||
\#*\#
|
||||
*~
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,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]
|
3
mix.exs
3
mix.exs
|
@ -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
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue