xorgram / xor Goto Github PK
View Code? Open in Web Editor NEWUser bot. Redefined.
Home Page: https://t.me/xorgram
License: GNU Lesser General Public License v3.0
User bot. Redefined.
Home Page: https://t.me/xorgram
License: GNU Lesser General Public License v3.0
Some of the caught errors might be shown to the user (the missed parts of the closed #10).
�[0m�[1m�[31merror�[0m: Uncaught (in promise) TypeError: Must be a file URL.
2022-07-22T15:31:35.877517+00:00 app[worker.1]: throw new TypeError("Must be a file URL.");
2022-07-22T15:31:35.877518+00:00 app[worker.1]: �[0m�[31m ^�[0m
2022-07-22T15:31:35.877519+00:00 app[worker.1]: at �[0m�[1m�[3mfromFileUrl�[0m (�[0m�[36mhttps://deno.land/[email protected]/path/posix.ts�[0m:�[0m�[33m492�[0m:�[0m�[33m11�[0m)
2022-07-22T15:31:35.877523+00:00 app[worker.1]: at �[0m�[36mhttps://raw.githubusercontent.com/xorgram/xor/0.1.0/main.ts�[0m:�[0m�[33m21�[0m:�[0m�[33m18�[0m
2022-07-22T15:31:36.021112+00:00 heroku[worker.1]: Process exited with status 1
2022-07-22T15:31:36.164774+00:00 heroku[worker.1]: State changed from up to crashed
The 2.5.42 version of GramJS breaks line 32 in module_manager.ts
.
We can make handlers return a Symbol
or something that will decide on handling the other handlers in a module instead of stopping handling others. Inspired by gotgbot as a replacement to middlewares.
There are many uncaught errors in the handlers which make it possible for the bot to crash.
A helper function must be implemented that catches errors in the handlers and tells them to the user if required.
The whois command displays the information of the replied peer or the passed peer ID.
The information can be received with the getEntity
method of TelegramClient
.
The title says it all.
error: Module not found "https://deno.land/std/hash/mod.ts".
at https://deno.land/x/[email protected]/src/primitives.ts:1:28
(clean install)
If we use the /ban
command without replying to a message, the Error: Cannot cast [object Object] to any kind of peer
will be thrown.
xor
in a production env, There is no package.json
so external modules can't import necessary dependencies.Example:
new CommandHandler('hey', ({ event }) => {
await event.message.reply({ message: 'Hey you!' })
})
The installModules
function must ignore the entities starting with .
in the directory.
Title says it all.
This issue is for tracking and discussing the implementation of the stable built-in modules of the userbot.
The built-in modules don’t have many dependencies. Hence, Xor doesn’t have enough dependencies for external modules to enjoy. If someone wants to develop a scraping plugin, they will need installing an extra dependency, which is currently not possible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.