Skip to content

Commit

Permalink
Merge pull request #140 from cabal-club/welcome-message
Browse files Browse the repository at this point in the history
add support for custom welcome message
  • Loading branch information
cblgh authored Dec 20, 2019
2 parents 635aa5a + 107eef9 commit 9aaab14
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
9 changes: 5 additions & 4 deletions neat-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ 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 path = require('path')
var welcomePath = path.join(__dirname, 'welcome.txt')
var welcomeMessage = fs.readFileSync(welcomePath).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 9aaab14

Please sign in to comment.