Skip to content

Commit

Permalink
add support for custom welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
cblgh committed Dec 19, 2019
1 parent 56ae8d9 commit 810cdfa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 3 additions & 4 deletions neat-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ var strftime = require('strftime')
var views = require('./views')
var util = require('./util')
var markdown = require('./markdown-shim')
var welcomeMessage = ['welcome to cabal',
'type /channels to see which channels to join, and /help for more commands',
'for more info visit https://github.com/cabal-club/cabal']

var fs = require("fs")
var welcomeMessage = fs.readFileSync("welcome.txt").toString().split("\n")

function NeatScreen (props) {
if (!(this instanceof NeatScreen)) return new NeatScreen(props)
this.client = props.client
Expand Down
11 changes: 11 additions & 0 deletions welcome.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
▄▄ ▄▄▄▄
██ ▀▀██
▄█████▄ ▄█████▄ ██▄███▄ ▄█████▄ ██
██▀ ▀ ▀ ▄▄▄██ ██▀ ▀██ ▀ ▄▄▄██ ██
██ ▄██▀▀▀██ ██ ██ ▄██▀▀▀██ ██
▀██▄▄▄▄█ ██▄▄▄███ ███▄▄██▀ ██▄▄▄███ ██▄▄▄
▀▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀ ▀▀▀ ▀▀▀▀ ▀▀ ▀▀▀▀

welcome to cabal!
type /channels to see which channels to join, and /help for more commands
for more info visit https://github.com/cabal-club/cabal

0 comments on commit 810cdfa

Please sign in to comment.