GithubHelp home page GithubHelp logo

torchlight's Introduction

Torchlight

Bot for source engine games with a lot of commands:

  • Play music from youtube, mp3, wav
  • Get the weather in real time.
  • Play tts messages
  • And much more!

Requirements

Linux

Game server

Installation

Torchlight

  • Install python3 and python-virtualenv
  • Create a virtualenv: python3 -m venv venv
  • Activate the virtualenv: . venv/bin/activate
  • Install all dependencies: pip install -r requirements.txt
  • Install torchlight: pip install -e .

Adapt the files in the config folder.

Game server

You need to have SourceTV enabled and use the vaudio_celt voice codec:
cstrike/cfg/autoexec.cfg

// Server Cvars
sv_consistency 0
sv_pure -1

// Source TV
tv_allow_camera_man 0
tv_autorecord 0
tv_delay 0
tv_enable 1
tv_maxclients 16
tv_maxrate 0
tv_name "TorchTV"
tv_transmitall 1
tv_chattimelimit 1

sv_voicecodec "vaudio_celt"

map de_dust2

Don't put +map into your startup cmdline.

Docker

version: '3.7'

services:
  torchlight:
    image: ghcr.io/srcdslab/torchlight:master
    container_name: torchlight
    ports:
      - 27115:27115
    network_mode: host
    volumes:
      - /my/path/to/sounds:/app/sounds
      - /my/path/to/config:/app/config

torchlight's People

Contributors

botox avatar cmer81 avatar maxime1907 avatar oylsister avatar

torchlight's Issues

No cooldown limit, wrong player access

There is no 60 second cooldown when used for 10 seconds
and George G. seems to have unlimited access (level 6) even though he is level 3
Looks like VIPs still stop at 5 seconds, but they can spam without cooldown

feature: prevent spam usage

Don't allow the usage of a another command (say/yt/yts/trigger/decl/define..) if the current sound isn't finished.
(Except adminstrative commands)

feature: youtube search filter

Idea ?
When youtube search return title including some not allowed words (from a config list), return a message this content is not allowed and don't play the sound.

Usefull for earrape content for exemple.

reload command

Reload command doesn't return any message.

  • It should return if user have access
  • When reloaded was performed

not enough values to unpack

Exemple:
Using !yts cat sound
Will return as
[Torchlight]: Error: not enough values to unpack (expected 2, got 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.