https://open.mp logo
Docs
Join the conversationJoin Discord
Channels
general
general-show-off
opemp-dev
open-mp-server-beta
openmp-samp-help
pawn-help
sa-show-off
samp-and-sa
samp-android
support-forum
Powered by Linen
general
  • b

    busy-arm-75131

    12/15/2022, 8:45 PM
    I rather make it in python
  • g

    gentle-london-6993

    12/15/2022, 8:45 PM
    Me too
  • b

    busy-arm-75131

    12/15/2022, 8:46 PM
    js
    const Eris = require("eris");
    
    // Replace TOKEN with your bot account's token
    const bot = new Eris("Bot TOKEN", {
        intents: [
            "guildMessages"
        ]
    });
    
    bot.on("ready", () => { // When the bot is ready
        console.log("Ready!"); // Log "Ready!"
    });
    
    bot.on("error", (err) => {
      console.error(err); // or your preferred logger
    });
    
    bot.on("messageCreate", (msg) => { // When a message is created
        if(msg.content === "!ping") { // If the message content is "!ping"
            bot.createMessage(msg.channel.id, "Pong!");
            // Send a message in the same channel with "Pong!"
        } else if(msg.content === "!pong") { // Otherwise, if the message is "!pong"
            bot.createMessage(msg.channel.id, "Ping!");
            // Respond with "Ping!"
        }
    });
    
    bot.connect(); // Get the bot to connect to Discord
  • b

    busy-arm-75131

    12/15/2022, 8:46 PM
    Or eris
  • b

    busy-arm-75131

    12/15/2022, 8:46 PM
    Yeah eris looks promising
  • g

    gentle-london-6993

    12/15/2022, 8:47 PM
    Looks like good
  • b

    busy-arm-75131

    12/15/2022, 8:47 PM
    It is
  • b

    busy-arm-75131

    12/15/2022, 8:47 PM
    Not .js ofc
  • b

    busy-arm-75131

    12/15/2022, 8:47 PM
    It's typescript
  • r

    refined-painter-72344

    12/15/2022, 8:49 PM
    eris still living?
  • r

    refined-painter-72344

    12/15/2022, 8:50 PM
    so it's js
  • r

    refined-painter-72344

    12/15/2022, 8:50 PM
    but with more code
  • b

    busy-arm-75131

    12/15/2022, 8:53 PM
    Yes still js
  • b

    busy-arm-75131

    12/15/2022, 8:53 PM
    But static checking bla bla bla
  • b

    busy-arm-75131

    12/15/2022, 8:53 PM
    👍
  • b

    busy-arm-75131

    12/15/2022, 8:54 PM
    ¯\_(ツ)_/¯
  • w

    wonderful-camera-91320

    12/15/2022, 9:19 PM
    You know what Santa says when he gets shocked
  • w

    wonderful-camera-91320

    12/15/2022, 9:19 PM
    Ooh DEER
  • w

    wonderful-camera-91320

    12/15/2022, 9:19 PM
    HAHA get it?
  • w

    wonderful-camera-91320

    12/15/2022, 9:19 PM
    Deer
  • w

    wonderful-camera-91320

    12/15/2022, 9:20 PM
    https://tenor.com/view/deer-attack-push-kid-go-away-gif-26078085
  • w

    wonderful-camera-91320

    12/15/2022, 9:20 PM
    @cool-battery-88185
  • a

    adventurous-hair-36125

    12/15/2022, 9:21 PM
    no
  • g

    gentle-london-6993

    12/15/2022, 9:23 PM
    No
  • m

    millions-knife-57333

    12/15/2022, 9:23 PM
    no
  • b

    breezy-solstice-69394

    12/15/2022, 9:24 PM
    no
  • b

    breezy-solstice-69394

    12/15/2022, 9:24 PM
    btw i thought was sscanf sarah
  • b

    breezy-solstice-69394

    12/15/2022, 9:28 PM
    how can i enter in #partners on https://open.mp/partners
  • g

    gentle-london-6993

    12/15/2022, 9:28 PM
    Do you got a server?
  • b

    breezy-solstice-69394

    12/15/2022, 9:28 PM
    yes i've
Powered by Linen
Title
b

breezy-solstice-69394

12/15/2022, 9:28 PM
yes i've
View count: 1