Skip to content

Commit 5997bab

Browse files
committed
sample file, readme and update deps
1 parent 5d272c2 commit 5997bab

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ node_modules
3333
.node_repl_history
3434
>>>>>>> b98f6a419c2b5cf9f301e9a9b0f3ec9488a5a269
3535

36-
config/**/*
36+
config/production.json

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# CTF-BOT
2+
3+
A simplistic bot for IRC channel. With a dynamic module reload (Hot-reload) to create a changeable bot on-the-fly :dancer:
4+
5+
### Configuration
6+
7+
You can set the envoironment configuration file inside config folder, the file must have the same name of the desired env. There's a sample development config file :)
8+
9+
### Funcionalities
10+
11+
- !nextctf: Return next CTF from [ctftime]
12+
13+
### Todos
14+
15+
- ~~Dynamic module loader;~~ (by [@brunoventura]).
16+
- ~~CTF-BOT give voice to users;~~ (by [@fernandoGuisso])
17+
- CTF-BOT show national events in !nex
18+
- ~~Extract config params from script;~~ (by [@brunoventura]).
19+
20+
### Installation
21+
```sh
22+
$ npm install
23+
```
24+
25+
### Run
26+
```sh
27+
$ node app.js
28+
```
29+
30+
[ctftime]: <https://ctftime.com/upcoming>
31+
[@fernandoGuisso]: <https://github.com/fernandoGuisso>
32+
[@brunoventura]: <https://github.com/brunoventura>

config/development.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"server": "rajaniemi.freenode.net",
3+
"botNick": "ctfbot-test",
4+
"password": "",
5+
"channels": [
6+
"#ctf-bot-test"
7+
]
8+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"license": "ISC",
1111
"dependencies": {
1212
"cheerio": "^0.20.0",
13-
"hotswap": "^1.1.0",
1413
"irc": "^0.4.1",
15-
"request": "^2.69.0"
14+
"request": "^2.69.0",
15+
"watch": "^0.17.1"
1616
}
1717
}

0 commit comments

Comments
 (0)