Code Monkey home page Code Monkey logo

steambattlebot's Introduction

This has been archived

I plan to revisit this some time as probably a Rust project, but for now, this will be archived.

SteamBattleBot

Steam chat game bot used to pass time

Usage

  • You will need
    • An alt account
  1. Start the application and sign in
  • If you got email verification it will ask you for the code.
  1. Open the new admim.txt folder and replace the current text with your steamID64
  • You can find your steamID64 at steamid.io
  • You can add as many steamID64 as you want, just make sure each one is on a new line
  1. Send the bot account the follow command to setup/restart a new game: !setup
  • To send the bot account commands, simply open a chat with the bot and enter them there.
  1. Send the bot account commands via steam chat (Commands below).

Commands

Command Action
!setup Used to setup/reset a game.
!block Block the enemies attack.
!attack Used to attack the enemy.
!stats Used to view your stats.
!shop Used to open the shop.
!help Display commands.
!changelog Shows the latest changelog.
!shutdown Used to shut down the bot (Admin only).
!message [message] Message all the users that have friended the bot (Admin only).
!changename [name] Change the name of the bot (Admin only).
!debug [setting] Enable/Disable debug settings (Admin only).
!resetadmins Recheck admin.txt for new admins (Admin only).
!save Save all of the current players stats (Admin only).

Features

  • Multi user support.
  • Steam Guard Support.
    • This includes 2FA and email.
  • Auto login (Currently unsecured, mostly just for testing)
    • Create a creds.txt in the same folder as the program and put your username on the top line and your password on the line below then simply open the program.
  • And many more

Need to do list

Libraries used

This project is licensed under the terms of the MIT license.

steambattlebot's People

Contributors

kingofkfcjamal avatar quizque avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

steambattlebot's Issues

My method for checking HP causing conflict with choosing either boss or normal monster

public void attack(SteamFriends.FriendMsgCallback callback, SteamFriends steamFriends)
        {
            if (!shopMode)
            {
                if ((enemy.hp >=40) && (enemy.hp <= 50))
                {
                    enemy.hp = enemy.hpboss;
                    steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, "You are facing a Gaben Clone.");
                    #region Miss/Hit checker
                    hitChance = _random.Next(1, 4);
                    if (hitChance == 3) // Missed
                    {
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, "You missed the Gaben Clone!");
                    }
                    else
                    {
                        enemy.hpboss -= damageDone;
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, String.Format("You hit the Gaben Clone for {0} damage!", damageDone));
                    }
                    hitChance = _random.Next(1, 4);
                    if (hitChance == 3) // Missed
                    {
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, "The Gaben Clone missed you!");
                    }
                    else
                    {
                        damageTaken = _random.Next(1, 20); // How much damage did the monster do
                        hp -= damageTaken;
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, String.Format("The Gaben Clone hitted you with the Ban Hammer for {0} damage!", damageTaken));
                    }
                    #endregion

                    hpCheckGaben(callback, steamFriends);

                    stateGaben(callback, steamFriends);
                }
                else if (enemy.hp < 40)
                {
                    #region Miss/Hit checker
                    hitChance = _random.Next(1, 4);
                    if (hitChance == 3) // Missed
                    {
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, "You missed the Robot!");
                    }
                    else
                    {
                        enemy.hp -= damageDone;
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, String.Format("You hit the Robot for {0} damage!", damageDone));
                    }
                    hitChance = _random.Next(1, 4);
                    if (hitChance == 3) // Missed
                    {
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, "The Robot missed you!");
                    }
                    else
                    {
                        damageTaken = _random.Next(1, 12); // How much damage did the monster do
                        hp -= damageTaken;
                        steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, String.Format("The Robot hit you for {0} damage!", damageTaken));
                    }
                    #endregion

                    hpCheck(callback, steamFriends);

                    state(callback, steamFriends);

                }
            }
        }

I will try to fix this to correctly display the right opponent.

Since update, it kicks me out of Steam Client.

Each time I start up the program, it kicks my Steam Client to offline (Yes, I know I am using my main account since there aren't an auto-accept friend requests feature yet :D). And as soon as I restart Steam, it kicks the program offline.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.