Giter Site home page Giter Site logo

Comments (2)

cartertemm avatar cartertemm commented on September 18, 2024
  1. I have a list of the events on hand, though had planned on posting it when I had more info about the parameters each could take. In the meantime I can make a commented packet dump. Also check out teamtalk/teamtalk.py. Functions starting with "handle" are subscriptions that manage internal state. TeamTalkServer._handle_loggedout is exucuted on a "loggedout" event, for example.

  2. You can distinguish between types of messages by comparing params["type"] to one of USER_MSG, CHANNEL_MSG, BROADCAST_MSG or CUSTOM_MSG. See the number bot.

  3. I don't believe I have enough info to help you based on the code provided, but some tips:

  • If your bot has to monitor multiple servers at once, I'm not too sure why you're initializing a single TeamTalkServer object. Each corresponds to a single server.
  • handle_messages blocks, optionally taking a callback. So of course all code execution stops here.
  • PyTeamTalk should be moderately threadsafe assuming you confine server objects to their own threads. No more than one running on a single thread because handle_messages 1 and handle_messages 2 would be competing with one another for time and... Just don't do it unless maybe you need to login, send a packet or two and log out.

from pyteamtalk.

cartertemm avatar cartertemm commented on September 18, 2024

Closing due to inactivity.

from pyteamtalk.

Related Issues (1)

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.