• Stars
    star
    451
  • Rank 96,968 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This Telegram Bot can tell the anime when you send an screenshot to it

trace.moe-telegram-bot

License GitHub Workflow Status Docker Docker Image Size Discord

This Telegram Bot can tell the anime when you send an screenshot to it

https://telegram.me/WhatAnimeBot

WhatAnimeBot.mp4

Features

  • Show anime titles in multiple languages
  • Telegram group support
  • Image, GIF, Video, URL support (stickers are not supported)
  • Video preview

How to use

  1. Start chatting with the bot https://telegram.me/WhatAnimeBot
  2. Send anime screenshots (images, gif or video) directly to the bot
  3. You may also forward images from other chats to the bot
  4. The bot will tell you the anime, episode, and time code of it
  5. It will also send you a video preview of that scene

How to use (in group)

  1. Add the bot @WhatAnimeBot to your group
  2. Reply to any group image, mention the bot with @WhatAnimeBot
  3. Wait for the bot to reply

Note that the bot has no access to your messages before it is added to your group

How to host the bot on your own

If you have privacy concern, you can host the bot on your own.

Please read Telegram's official tutorial to create a Bot first.

You need to disable Privacy Mode if you want to use your bot in group chat.

Environment Variables

TELEGRAM_TOKEN=       # e.g. 111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
TELEGRAM_WEBHOOK=     # e.g. https://your.host.com/
PORT=                 # (optional) Default: 3000
TRACE_MOE_KEY=        # (optional)
ANILIST_API_URL=      # (optional) Default: https://graphql.anilist.co/

Deploy to Heroku

Deploy

Deploy on Railway

Deploy on Railway

Host with docker

Docker Image available on Docker Hub or GitHub Container Registry

docker run -it --rm --name trace-moe-tg-bot \
  -e TELEGRAM_WEBHOOK=https://your.host.com/ \
  -e TELEGRAM_TOKEN=111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA \
  -p 443:3000 \
  ghcr.io/soruly/trace.moe-telegram-bot:latest

Note that you need to configure a reverse proxy if you need HTTPS.

Host bare-metal with Node.js

Install Node.js 14.x, then:

git clone https://github.com/soruly/trace.moe-telegram-bot.git
cd trace.moe-telegram-bot
npm install
  • Copy .env.example to .env
  • Edit .env as you need
node server.js

Host bare-metal with pm2

You also can use pm2 to run this in background in cluster mode.

Use below commands to start / restart / stop server.

npm run start
npm run stop
npm run reload
npm run restart
npm run delete

To change the number of nodejs instances, edit ecosystem.config.json

More Repositories

1

trace.moe

Anime Scene Search by Image
Shell
4,020
star
2

awesome-acg

A curated list of awesome technologies related to Anime, Comic and Games
1,168
star
3

sola

Scene search On Liresolr for Animation. (and video)
JavaScript
273
star
4

trace.moe-WebExtension

WebExtension for the Anime Reverse Search Engine to search by image
JavaScript
104
star
5

trace.moe-api

API server for serving backend requests for trace.moe
JavaScript
88
star
6

anilist-crawler

Crawl data from anilist API and store in MariaDB.
JavaScript
43
star
7

trace.moe-media

Media server for serving video preview for trace.moe
JavaScript
36
star
8

anilist-chinese

Translate anime titles on anilist.co to Chinese
JavaScript
32
star
9

slides

31
star
10

aniep

Extract episode number from anime file name
JavaScript
27
star
11

Pixiv-Search-Result-Unlocker

Unlock some search result in Pixiv, allows you to click on blocked pictures
JavaScript
25
star
12

trace.moe-www

Anime Scene Search by Image
JavaScript
24
star
13

burstlink

Link AniDB, MAL, ANN and Anilist IDs
TypeScript
15
star
14

pasu

Self-hosted TOTP authenticator PWA with FIDO2 (WebAuthn)
JavaScript
11
star
15

music

online music folder player without server side script
HTML
10
star
16

trace.moe-worker

background worker nodes for trace.moe
JavaScript
9
star
17

out-of-service

A static webpage to show when server is down
HTML
8
star
18

detect-scene-change

detect timestamp of all scene changes in video
Rust
6
star
19

search

Dead simple search engine for huge a text file
JavaScript
5
star
20

trace.moe-windows-menu

Right click images in file explorer to search on trace.moe
PowerShell
5
star
21

caster

Some ffmpeg scripts I use (along with some other video processing tools)
Shell
5
star
22

hk-bus-map

JavaScript
4
star
23

trace.moe-image-proxy

TypeScript
4
star
24

yuruscan

Barcode / QR Code scanner in a single HTML page
HTML
3
star
25

darega

Machine Learning Neural Network for identifying anime character faces (work-in-progress)
Python
3
star
26

iqdb

iqdb mirror of http://iqdb.org/code/
C++
2
star
27

solarday

PHP
2
star
28

chu2play

Remote Control for chunithm
HTML
2
star
29

soruly

2
star
30

rikarika

JavaScript
2
star
31

plurk-hitokoto

Post quotes from hitokoto (一言) to plurk (ε™—ζ΅ͺ)
JavaScript
2
star
32

encode

A simple javascript all-in-one webpage for common encodings / hashings.
JavaScript
2
star
33

e2e

Self-hosted End-to-End Encryption in plain JS with zero dependency
HTML
2
star
34

vimrc

My personal vim setup
Vim Script
1
star
35

telegram-hkweather-bot

A telegram bot that tells the weather of Hong Kong.
Go
1
star