Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SteamUser = require('steam-user');
- const SteamTotp = require('steam-totp')
- 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('Login Erfolgreich. Der Bot ist bereit.');
- client.setPersona(SteamUser.Steam.EPersonaState.Online);
- client.gamesPlayed(["Gib !help ein, um eine List von Befehlen zu erhalten.", 440]);
- });
- client.on("friendMessage", function(steamID, message) {
- if (message == "!help") {
- client.chatMessage(steamID, "Hier ist dein Hilfe.");
- }
- });
- client.on("friendMessage", function(steamID, message) {
- if (message == "!info") {
- client.chatMessage(steamID, "Γber mich:\n\n Mein Name ist Steven und ich bin 18 Jahre alt.");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement