UNPKG
ztobp.js
Version:
latest (1.0.1)
1.0.1
1.0.0
A bot framework for custom bots in chat rooms.
github.com/yourusername/ztobpjs
yourusername/ztobpjs
ztobp.js
/
src
/
Channel.ts
15 lines
(12 loc)
•
260 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// src/Channel.ts
export
class
Channel
{
private
id
:
string
;
private
name
:
string
;
constructor
(
id
:
string
,
name
:
string
) {
this
.
id
= id;
this
.
name
= name; }
getInfo
(
) {
return
`Channel Info: ID -
${
this
.id}
, Name -
${
this
.name}
`
; } }