Comments (8)
Here's an easy way to do what you're looking for:
user.on('friendMessage', function(steamid, message) {
const parts = message.split(' ');
console.log(`Command: ${parts[0]}`);
console.log(`Argument 1: ${parts[1]}`);
});
from node-steam-guide.
nothing happen in console?
from node-steam-guide.
Make sure you send the bot a message while it's online. If you do (and don't get any errors anywhere), that could should work fine.
from node-steam-guide.
When only !test
Command: !test
Argument 1: undefined
But !test hello
nothing happen
from node-steam-guide.
How can fix it?
from node-steam-guide.
if(${parts[1]} == "123") {
^
SyntaxError: Unexpected token {
how can fix it?
from node-steam-guide.
Fixed, nevermind. Thanks ^^
from node-steam-guide.
@vortexcodes If you could, please post how you fixed it.
from node-steam-guide.
Related Issues (20)
- Guide refresh HOT 7
- Publish website along with guide HOT 1
- NPM modules are broken and have wrong code HOT 9
- Im having trouble getting the bot to accept trade request from my main account HOT 5
- New to coding need some help if possible. HOT 1
- Issue with express-handlebars (Error: ENOENT: no such file or directory, open '..\views\layouts\main.handlebars') HOT 1
- Steam-Rep-Bot problem, can't run it fully. HOT 1
- How to check if offer state dynamically?
- Steam totp isn't working
- running the project
- Callback is not a function problem HOT 1
- Fetching Steam Shared Secret when using email confirmation HOT 1
- How to post comment? HOT 1
- Read unread messages prior to bot initialization HOT 1
- ReferenceError: Steam is not defined HOT 1
- SyntaxError: Unexpected token 'else' HOT 2
- EPersona Problem HOT 11
- Error: socket hang up HOT 3
- Issue with node project.js HOT 2
- Making steam bot stock management HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-steam-guide.