mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-16 02:34:19 +00:00
Parse bot token to get id and add examples
This commit is contained in:
10
examples/server.js
Normal file
10
examples/server.js
Normal file
@ -0,0 +1,10 @@
|
||||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
import dotenv from 'dotenv';
|
||||
import { TribufuServer } from '../build';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const server = TribufuServer.fromEnv();
|
||||
const serverId = server.getServerId();
|
||||
const clientId = server.getClientId();
|
Reference in New Issue
Block a user