Files

27 lines
767 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# KlonlanmaLal.js — readCommandText() (satır 690)
[← KlonlanmaLal.js](index.md) · [← Master](../../wiki.md)
```javascript
function readCommandText(c) {
var keys = ["message", "command", "raw", "text"];
for (var i = 0; i < keys.length; i++) {
try {
var value = c.getValue(keys[i]);
if (value !== null && value !== undefined && String(value).length > 0) return String(value);
} catch (e) {}
}
try {
var event = c.getValue("event");
if (event && event.getMessage) {
var msg = event.getMessage();
if (msg !== null && msg !== undefined && String(msg).length > 0) return String(msg);
}
} catch (e2) {}
return "";
}
```