Code Monkey home page Code Monkey logo

3ma-bot's Introduction

3ma-bot

This is a simple threema bot frame based on the o3 library

It is written in go. If this is your first time working with go, you need to setup $GOPATH similar to this:

export GOPATH=~/.go
mkdir $GOPATH
go get github.com/o3ma/o3rest
go get github.com/o3ma/o3

Usage

Build and run with go run simple-bot.go.

It will create an threema ID file on first run which will be saved to threema.id. I suggest add this to your backup and do not publish it.

The addressbook of the people that communicate with your bot will be saved to address.book if you kill the bot.

All incoming text messages will be passed on to a binary utfe.bot, and the output will be sent back to the originator.

This utfe.bot binary/script is not part of this repo and can be written in any language. Use your own imagination, or refer to utfe

Authentication

On startup, the bot prints the string necessary to create the QR code used for authentication in the threema mobile app.

To create the QR code you can use:

[qrencode](https://fukuchi.org/works/qrencode/) -t ANSI 3mid:....

Licence

All code in this repo is herby licenced under the 2-clause BSD licence.

Thanks

Thanks to @NerdingByDoing and @twillnix for their talk and their personal late-night support at 33c3.

3ma-bot's People

Contributors

sec42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

3ma-bot's Issues

Bot sending files/att/img/vid

Hey,

is there a way that the bot could send some files?
I need to trigger the bot to send some files to the User, who is texting explicit string

Cheers lam0r86

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.