-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #2 Make possible move the bot in another channel not just the general chat closes #9 Add new functionality 1.0 in readme
- Loading branch information
Showing
10 changed files
with
174 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
'use strict'; | ||
var _ = require('lodash'); | ||
|
||
class channel { | ||
|
||
static createChannel(attributes) { | ||
|
||
var defaultAttributes = { | ||
'id': 'fake-general-channel-id', | ||
'name': 'general', | ||
'is_channel': true, | ||
'created': 1458000230, | ||
'creator': 'U0SNL23B4', | ||
'is_archived': false, | ||
'is_general': true, | ||
'has_pins': false, | ||
'is_member': true, | ||
'unread_count': 807, | ||
'unread_count_display': 806, | ||
'_status': 0, | ||
'_fulfilledCallbacks': [], | ||
'_rejectedCallbacks': [], | ||
'_progressCallbacks': [], | ||
'members': [ | ||
'U0SNL23B4', | ||
'1234' | ||
], | ||
'topic': { | ||
'value': 'Company-wide announcements and work-based matters', | ||
'creator': '', | ||
'last_set': 0 | ||
}, | ||
'purpose': { | ||
'value': 'This channel is for team-wide communication and announcements. All team members are in this channel.', | ||
'creator': '', | ||
'last_set': 0 | ||
} | ||
}; | ||
|
||
return _.extend(defaultAttributes, attributes); | ||
} | ||
|
||
static createChannelList() { | ||
return [ | ||
this.createChannel() | ||
]; | ||
} | ||
|
||
} | ||
|
||
module.exports = channel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.