Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SteamUser = require('steam-user');
- const config = require('./config.json');
- const client = new SteamUser();
- const logOnOptions = {
- accountName: config.username,
- password: config.password,
- };
- client.logOn(logOnOptions);
- client.on('loggedOn', () => {
- console.log('successfully logged on.');
- client.setPersona(SteamUser.Steam.EPersonaState.Online);
- client.gamesPlayed("Lethiem's Bot | !help for details",730);
- });
- client.on("friendMessage", function(steamID, message) {
- if (message == "!help") {
- client.chatMessage(steamID, "[HELP] Hi!, Use Commands, !gfx To order gfx for yourself - Usally takes 3-4 Days for the gfx to return to you! !main To add Lethiem's main account! !support Allows you to talk to an administrator");
- }
- });
- client.on("friendMessage", function(steamID, message) {
- if (message == "!gfx") {
- client.chatMessage(steamID, "[GFX]Either send me a key. or paypal $2 for a gfx logo, then we will contact you once its finished. https://www.paypal.me/zaliia/2");
- }
- });
- client.on("friendMessage", function(steamID, message) {
- if (message == "!main") {
- client.chatMessage(steamID, "[MAIN] Link to Lethiem's Main! --> http://steamcommunity.com/id/lethiem");
- }
- });
- client.on("friendMessage", function(steamID, message) {
- if (message == "!support") {
- client.chatMessage(steamID, "[SUPPORT] An Admin will be with you shortly. Please be patient our admins do have lives.");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement