Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. const SteamUser = require('steam-user');
  2. const config = require('./config.json');
  3. const client = new SteamUser();
  4.  
  5. const logOnOptions = {
  6. accountName: config.username,
  7. password: config.password,
  8. };
  9.  
  10. client.logOn(logOnOptions);
  11.  
  12. client.on('loggedOn', () => {
  13. console.log('successfully logged on.');
  14. client.setPersona(SteamUser.Steam.EPersonaState.Online);
  15. client.gamesPlayed("Lethiem's Bot | !help for details",730);
  16. });
  17.  
  18. client.on("friendMessage", function(steamID, message) {
  19. if (message == "!help") {
  20. 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");
  21. }
  22. });
  23.  
  24. client.on("friendMessage", function(steamID, message) {
  25. if (message == "!gfx") {
  26. 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");
  27. }
  28. });
  29.  
  30. client.on("friendMessage", function(steamID, message) {
  31. if (message == "!main") {
  32. client.chatMessage(steamID, "[MAIN] Link to Lethiem's Main! --> http://steamcommunity.com/id/lethiem");
  33. }
  34. });
  35.  
  36. client.on("friendMessage", function(steamID, message) {
  37. if (message == "!support") {
  38. client.chatMessage(steamID, "[SUPPORT] An Admin will be with you shortly. Please be patient our admins do have lives.");
  39. }
  40. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement